Tuesday, 12 March 2013
HOW TO find the latitude, longitude of a location based on WOEID
Posted on 11:23 by Unknown
Yahoo! has devised a unique identifier called the Where on Earth ID, or WOEID - for almost any named place on the Earth. This is used by APIs like Twitter Trends, flickr etc.
However, a majority of geo-location related APIs require latitude, longitude of a place to provide their services. So if you're building a mash-up that has to deal with latitude, longitude and WOEID, you can resolve a WOEID to a place with this call:
http://where.yahooapis.com/v1/place/2507854?appid=[YourYahooAppidHere]
Replace, 2507854 in the above example with the WOEID of the location whose co-ordinates you want to find.
The results can be requested in XML or JSON format.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment