diff --git a/README.md b/README.md index 4d68f1d5e4c00a0d5150031fca68f537ec9309fe..74121ed68fe430215665f4fda4a6d99cef61e647 100644 --- a/README.md +++ b/README.md @@ -374,7 +374,7 @@ The following is a comparison of the supported geocoding APIs. The "Limitations" #### ovi.com (Nokia maps) (`:ovi`) -* **API key**: none +* **API key**: required: `config.api_key = %w{app_id app_token}` * **Quota**: ? * **Region**: world * **SSL support**: no diff --git a/lib/geocoder/lookups/ovi.rb b/lib/geocoder/lookups/ovi.rb index 52c03112138d987600cd07795e5c4a1f9233cf3d..d02f7f62b285983fc16cf6dd6756f40677d38220 100644 --- a/lib/geocoder/lookups/ovi.rb +++ b/lib/geocoder/lookups/ovi.rb @@ -16,7 +16,10 @@ module Geocoder::Lookup def query_url_params(query) super.merge( - :searchtext => query.sanitized_text + searchtext:query.sanitized_text, + gen:1, + app_id:Geocoder::Configuration.api_key[0], + app_code:Geocoder::Configuration.api_key[1] ) end