Skip to content
Snippets Groups Projects
Commit a575ec2f authored by Francisco Caiceo's avatar Francisco Caiceo
Browse files

Replace Here mapview option to bounds

parent 04a56f4a
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,7 @@ The [Google Places Search API](https://developers.google.com/places/web-service/
* **SSL support**: yes
* **Languages**: The preferred language of address elements in the result. Language code must be provided according to RFC 4647 standard.
* **Extra params**:
* `:mapview` - pass NW and SE coordinates as an array of two arrays to bias results towards a viewport
* `:bounds` - pass NW and SE coordinates as an array of two arrays to bias results towards a viewport
* `:country` - pass the country or list of countries using the country code (3 bytes, ISO 3166-1-alpha-3) or the country name, to filter the results
* **Documentation**: http://developer.here.com/rest-apis/documentation/geocoder
* **Terms of Service**: http://developer.here.com/faqs#l&t
......
......@@ -44,7 +44,7 @@ module Geocoder::Lookup
options[:country] = country
end
unless (mapview = query.options[:mapview]).nil?
unless (mapview = query.options[:bounds]).nil?
options[:mapview] = mapview.map{ |point| "%f,%f" % point }.join(';')
end
options
......
......@@ -30,7 +30,7 @@ class HereTest < GeocoderTestCase
url = lookup.query_url(
Geocoder::Query.new(
'Some Intersection',
mapview: [[40.0, -120.0], [39.0, -121.0]]
bounds: [[40.0, -120.0], [39.0, -121.0]]
)
)
assert_match(/mapview=40.0+%2C-120.0+%3B39.0+%2C-121.0+/, url)
......
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