- Mar 29, 2011
-
-
Alex Reisner authored
Reported by github.com/joelmats. The array passed to Geocoder::Calculations.geographic_center was being modified in-place.
-
- Mar 25, 2011
-
-
Alex Reisner authored
Get rid of space after comma, if any (Google was returning no results).
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
- Mar 24, 2011
-
-
Alex Reisner authored
Was ignoring non-ASCII characters. Thanks to github.com/supergivi for reporting the bug.
-
Alex Reisner authored
-
Alex Reisner authored
Also clean up code comments.
-
Alex Reisner authored
-
- Mar 22, 2011
-
-
Alex Reisner authored
-
Alex Reisner authored
Was preventing other test from running.
-
Alex Reisner authored
Improve comments, make code style consistent with rest of Geocoder, and remove options (keep it dead simple).
-
Mat Ellis authored
Adds methods for calculating the bearing between two points and for converting that bearing into a compass point, e.g. North or South West. If you want fewer or additional compass points (e.g. South By South West, or just NESW) provide a second parameter containing your array of points, e.g. Geocoder::Calculations::compass_point(90,['north','east','south','west'])
-
- Mar 21, 2011
-
-
Alex Reisner authored
After further consideration, multiple results should be the default behavior for this method. Some services only return one result (eg: any IP-based service) but a great feature of advanced services like Yahoo and Google is that they return an array of choices when doing a vague search like "100 Main St" with no city, region, or country specified.
-
- Mar 18, 2011
-
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
Google results don't return a 'city', so we have to look at several fields in descending order of preference.
-
Alex Reisner authored
Now that we also support an API key for Google it makes sense for this to be generic.
-
Alex Reisner authored
-
Scott Vesely authored
-
Scott Vesely authored
-
- Mar 17, 2011
-
-
Alex Reisner authored
Replaces read_coordinates (private) and fixes bug in geographic center computation (reported by github.com/jonbuda).
-
- Mar 16, 2011
-
-
Alex Reisner authored
-
- Mar 15, 2011
-
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
- Mar 11, 2011
-
-
Alex Reisner authored
This was causing an exception (thanks to github.com/mikepinde).
-
Alex Reisner authored
-
- Mar 09, 2011
-
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
- Mar 08, 2011
-
-
Alex Reisner authored
Does not seem like a significant gain to have the auto-assignment AND a custom block. In fact, it seems annoying to have to use a different method. So now, passing a block to geocoded_by or reverse_geocoded_by prevents any auto-assignment from happening.
-
- Mar 07, 2011
-
-
Alex Reisner authored
Add geocode and reverse_geocode methods along with bang versions which can be used to skip auto-assignment of address or coordinates (specify a block that handles the Geocoder::Result instead).
-
Alex Reisner authored
Be sure to return nil.
-
Alex Reisner authored
If forward and reverse geocoding were both declared and options passed for both, only the options for the first were being set.
-
- Mar 06, 2011
-
-
Alex Reisner authored
-