Permalink
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.
  • Loading branch information...
1 parent 435d038 commit b7ea3461eb0706a277d50ab6ca7c3c107426efb8 @alexreisner committed Feb 9, 2013
@@ -6,6 +6,18 @@
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 @@ def query_url_params(query)
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

0 comments on commit b7ea346

Please sign in to comment.