- Mar 25, 2011
-
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
Just for interface consistency across database types. NOT for accuracy!
-
Alex Reisner authored
-
Alex Reisner authored
-
- Mar 24, 2011
-
-
Alex Reisner authored
-
Alex Reisner authored
Was ignoring non-ASCII characters. Thanks to github.com/supergivi for reporting the bug.
-
Alex Reisner authored
-
Alex Reisner authored
Response to Issue #27, posted by github.com/avioing.
-
Alex Reisner authored
Also clean up code comments.
-
Alex Reisner authored
-
Alex Reisner authored
This allows easier substitution of custom values.
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
This was yielding incorrect bearing calculations (east and west were treated as the same direction).
-
Alex Reisner authored
-
- Mar 22, 2011
-
-
Alex Reisner authored
Only worked with MySQL.
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
Was preventing other test from running.
-
Alex Reisner authored
-
Alex Reisner authored
-
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'])
-
Mat Ellis authored
Add option "bearing". When set to :line or :spherical it returns the bearing of the record from the search point, i.e. if the record is due north you'll see 0.0 returned. :line is a straight line, :spherical is the shortest path where the bearing between two points varies with distance to take into account curvature of the planet.
-
- Mar 21, 2011
-
-
Alex Reisner authored
...for array methods mistakenly called on a Result object. This is no longer likely to be a problem now that Geocoder.search returns an array.
-
Alex Reisner authored
...for Result instance methods mistakenly called on an array.
-
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.
-