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

Bring datenimperator-add-ovi up to date w/ changes in master.

Ideally, datenimperator-add-ovi would have been rebased to master before
being merged.
parent 435d0380
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,18 @@ require 'geocoder/results/ovi'
module Geocoder::Lookup
class Ovi < Base
def name
"Ovi"
end
def required_api_key_parts
[]
end
def query_url(query)
"http://lbs.ovi.com/search/6.2/geocode.json?" + url_query_string(query)
end
private # ---------------------------------------------------------------
def results(query)
......@@ -28,19 +40,15 @@ module Geocoder::Lookup
end
def api_key
if a=Geocoder::Configuration.api_key
if a=configuration.api_key
return a.first if a.is_a?(Array)
end
end
def api_code
if a=Geocoder::Configuration.api_key
if a=configuration.api_key
return a.last if a.is_a?(Array)
end
end
def query_url(query)
"http://lbs.ovi.com/search/6.2/geocode.json?" + url_query_string(query)
end
end
end
File moved
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