From 82f95aa19bdeaef1cfefbf8f44e6e8d983a91a7f Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Tue, 12 Aug 2014 11:47:23 -0400 Subject: [PATCH] Document lat/log column specification with .near. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 343bba8f..4fe7f482 100644 --- a/README.md +++ b/README.md @@ -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 ------------------ -- GitLab