Skip to content
Snippets Groups Projects
Commit 19f1e29b authored by Galia's avatar Galia
Browse files

Warn that the Yahoo BOSS Placefinder API is being discontinued.

https://developer.yahoo.com/boss/placefinder/

the Yahoo lookup will be fully removed via:
https://github.com/alexreisner/geocoder/pull/985
parent b75e7d77
No related branches found
No related tags found
No related merge requests found
......@@ -435,6 +435,7 @@ The [Google Places Details API](https://developers.google.com/places/documentati
* **Limitations**: "If your application displays Places API data on a page or view that does not also display a Google Map, you must show a "Powered by Google" logo with that data."
#### Yahoo BOSS (`:yahoo`)
**Warning - [this API will be discontinued on March 31.](https://developer.yahoo.com/boss/placefinder/)**
* **API key**: requires OAuth consumer key and secret (set `Geocoder.configure(:api_key => [key, secret])`)
* **Key signup**: http://developer.yahoo.com/boss/geo/
......
......@@ -17,6 +17,10 @@ module Geocoder
if !options.nil?
Configuration.instance.configure(options)
end
if config.lookup == :yahoo
Geocoder.log(:warn, "Yahoo BOSS Placefinder API will be discontinued March 31, 2016.")
end
end
##
......
......@@ -28,6 +28,7 @@ module Geocoder::Lookup
private # ---------------------------------------------------------------
def results(query)
Geocoder.log(:warn, "Yahoo BOSS Placefinder API will be discontinued March 31, 2016.")
return [] unless doc = fetch_data(query)
doc = doc['bossresponse']
if doc['responsecode'].to_i == 200
......
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