From 8fa9b3eafc736046bd8c303fd5e298b33e79b6d2 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Tue, 28 Jan 2014 10:09:27 -0500 Subject: [PATCH] Add multi-address example. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 1bca09f3..5d92a9a5 100644 --- a/README.md +++ b/README.md @@ -206,6 +206,11 @@ You are not stuck with using the `latitude` and `longitude` database column name geocoded_by :address, :latitude => :lat, :longitude => :lon # ActiveRecord geocoded_by :address, :coordinates => :coords # MongoDB +This means you can geocode multiple addresses as well: + + geocoded_by :start_address, latitude: :start_latitude, longitude: :start_longitude + geocoded_by :end_address, latitude: :end_latitude, longitude: :end_longitude + The `address` method can return any string you'd use to search Google Maps. For example, any of the following are acceptable: * "714 Green St, Big Town, MO" -- GitLab