No BSD License  

Highlights from
Yahoo GeoCode API

5.0

5.0 | 1 rating Rate this file 7 Downloads (last 30 days) File Size: 3.02 KB File ID: #22565

Yahoo GeoCode API

by Scott Frasso

 

31 Dec 2008

GeoCode an address using the Yahoo GeoCode API.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.7 (R2008b)
Other requirements Internet connection required.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
01 Jan 2009 OH

(My case is below)

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

01 Jan 2009 Scott Frasso

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

15 May 2009 Jarvis Davis

Thanks. i modified your code to use the Google API

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
yahoo Scott Frasso 31 Dec 2008 12:36:57
geocode Scott Frasso 31 Dec 2008 12:36:57
latitude Scott Frasso 31 Dec 2008 12:36:57
longitude Scott Frasso 31 Dec 2008 12:36:57

Contact us at files@mathworks.com