Skip to content
Snippets Groups Projects
Commit 82f95aa1 authored by Alex Reisner's avatar Alex Reisner
Browse files

Document lat/log column specification with .near.

parent 1806cfcf
No related branches found
No related tags found
No related merge requests found
......@@ -272,6 +272,10 @@ lower bound (ie. think of a donut, or ring) by using the `:min_radius` option:
box = Geocoder::Calculations.bounding_box(center_point, distance, :min_radius => 10.5)
With ActiveRecord, you can specify alternate latitude and longitude column names for a geocoded model (useful if you store multiple sets of coordinates for each object):
Venue.near("Paris", 50, latitude: :secondary_latitude, longitude: :secondary_longitude)
Advanced Geocoding
------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment