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

Improve special parameter documentation.

parent 45a19878
No related branches found
No related tags found
No related merge requests found
...@@ -286,9 +286,14 @@ By default Geocoder uses Google's geocoding API to fetch coordinates and street ...@@ -286,9 +286,14 @@ By default Geocoder uses Google's geocoding API to fetch coordinates and street
) )
Please see lib/geocoder/configuration.rb for a complete list of configuration options. Additionally, some lookups have their own configuration options which are listed in the comparison chart below, and as of version 1.1.4 you can pass arbitrary parameters to any geocoding service. For example, to use Nominatim's `countrycodes` parameter: Please see lib/geocoder/configuration.rb for a complete list of configuration options. Additionally, some lookups have their own configuration options, some of which are directly supported by Geocoder. For example, to specify a value for Google's `bounds` parameter:
Geocoder.configure(:lookup => :nominatim) # with Google:
Geocoder.search("Paris", :bounds => [[32.1,-95.9], [33.9,-94.3]])
Please see the [source code for each lookup](https://github.com/alexreisner/geocoder/tree/master/lib/geocoder/lookups) to learn about directly supported parameters. Parameters which are not directly supported can be specified using the `:params` option, by which you can pass arbitrary parameters to any geocoding service. For example, to use Nominatim's `countrycodes` parameter:
# with Nominatim:
Geocoder.search("Paris", :params => {:countrycodes => "gb,de,fr,es,us"}) Geocoder.search("Paris", :params => {:countrycodes => "gb,de,fr,es,us"})
......
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