- Apr 01, 2013
-
-
Douglas Pouk authored
-
- Dec 08, 2012
-
-
Alex Reisner authored
Make Geocoder.configure accept a hash (now preferred) and add Geocoder.config method (for reading config). Deprecate old syntax.
-
- Sep 29, 2012
-
-
Alex Reisner authored
-
- Jun 11, 2012
-
-
Alex Reisner authored
This fixes issue #244.
-
- Apr 13, 2012
-
-
Florian Frank authored
Geocoder.coordinates sometimes returns nil which causes crashes in the distance and bearing calculations. By returning a point array of [ NaN, NaN ] this distances will be also NaN which seems to be a sensible result. If the argument to extract_coordinates has an unexpected form, also return [ NaN, NaN ].
-
- Apr 11, 2012
-
-
Alex Reisner authored
It's not an ideal name either, but it's short and it's slightly more specific than "method".
-
- Jul 21, 2011
-
-
Anderson Bravalheri authored
-
- May 09, 2011
-
-
Alex Reisner authored
-
- Apr 05, 2011
-
-
Alex Reisner authored
-
Alex Reisner authored
-
- Apr 01, 2011
-
-
Alex Reisner authored
This reduces the desire to use map! (instead of map) which would modify the user's argument in-place. There's a test to prevent that but this makes sense semantically too.
-
Alex Reisner authored
Also add extract_coordinates method and use wherever relevant.
-
Alex Reisner authored
-
- Mar 31, 2011
-
-
Alex Reisner authored
-
- 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
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
Alex Reisner authored
-
- Mar 24, 2011
-
-
Alex Reisner authored
-
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
-
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'])
-
- Mar 17, 2011
-
-
Alex Reisner authored
Replaces read_coordinates (private) and fixes bug in geographic center computation (reported by github.com/jonbuda).
-
- Jan 21, 2011
-
-
Alex Reisner authored
Move some methods into it (organize!).
-