File Exchange

image thumbnail

Yahoo GeoCode API

version 1.0.0.0 (3.02 KB) by Scott Frasso
GeoCode an address using the Yahoo GeoCode API.

3 Downloads

Updated 01 Sep 2016

View License

Have you ever wondered what the Latitude and Longitude of the MathWorks headquarters is? Well now you can find that (or any other address) all from within MATLAB. This function queries Yahoo to geocode an address string. The address can be anything from a company name, a city, a zip code, or a full comma seperated street address.
Yahoo! Maps Web Services - Geocoding API
http://developer.yahoo.com/maps/rest/V1/geocode.html
*Note: You need an AppID to query data from Yahoo. There is a sample AppID provided by Yahoo. I'm not sure what will happen if everyone uses the sample, so if your actually going to use this to make more then a few queries please get your own AppID.

Cite As

Scott Frasso (2019). Yahoo GeoCode API (https://www.mathworks.com/matlabcentral/fileexchange/22565-yahoo-geocode-api), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Nikola

Hello,

I have a question about Yahoo API. Since, Geocode API is deprecated, I've used Yahoo PlaceFinder API. But I have difficulties receiving the response from web service.

Additionally, I've explained my problem at Matlab Answers (http://www.mathworks.com/matlabcentral/answers/28613-help-with-using-yahoo-geocode-api).

I would appreciate if you have any suggestions. Thanks.

Jarvis Davis

Thanks. i modified your code to use the Google API

Hyun,

The line you are talking about does not throw an ERROR it throws a WARNING. You are using the DEMO APPID. If you plan on using this to make a lot of queries you need to get your own APPID.

I have to put throw a WARNING if someone uses the DEMO APPID because if too many people use it then the DEMO APPID may stop working.

If you plan on using this a lot then:

1) Goto this website http://developer.yahoo.com/maps/rest/V1/geocode.html

2) Click on "Get an App ID"

3) Get an APPID of your own.

4) Use that APPID instead of the DEMO APPID

OH

(My case is below)

Error in ==> YahooGeoCodeAddress at 19
if
strcmp(appId,'YRvElmDV34GfsX7bU06w2GF1VORKeA0UcZw_39iiMoEyckkpAL6F_83XBGkTACOxZg--')

Updates

1.0.0.0

.

1.0.0.0

BSD

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux