From 95caf8cf02c332f6785cc670fa988af8c3176309 Mon Sep 17 00:00:00 2001 From: Christian Aust <git@kontakt.software-consultant.net> Date: Wed, 6 Feb 2013 17:01:43 +0100 Subject: [PATCH] Add required app_id and token for OVI --- README.md | 2 +- lib/geocoder/lookups/ovi.rb | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4d68f1d5..74121ed6 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 52c03112..d02f7f62 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 -- GitLab