Skip to content
Snippets Groups Projects
Commit 1a22d7f1 authored by Thu Trang Pham's avatar Thu Trang Pham Committed by GitHub
Browse files

Add documentation for geocoded_by params to README

parent d8d9558a
Branches
Tags
No related merge requests found
...@@ -373,6 +373,17 @@ Or, to search within a particular region with Google: ...@@ -373,6 +373,17 @@ Or, to search within a particular region with Google:
Geocoder.search("...", :params => {:region => "..."}) Geocoder.search("...", :params => {:region => "..."})
Or, to use parameters in your model:
class Venue
# build an address from street, city, and state attributes
geocoded_by :address_from_components, :params => {:region => "..."}
# store the fetched address in the full_address attribute
reverse_geocoded_by :latitude, :longitude, :address => :full_address, :params => {:region => "..."}
end
You can also configure multiple geocoding services at once, like this: You can also configure multiple geocoding services at once, like this:
Geocoder.configure( Geocoder.configure(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment