Cities to Metropolitan areas

老子叫甜甜 提交于 2019-12-23 03:42:13

问题


I have a database of cities (in both the US and the rest of the world). The database entries are simple text strings. Currently the database contains even small cities (population 10,000). I wish to use a larger scale database instead, by assigning the cities into larger geographical\metropolitan areas. An example can be the Metropolitan areas in Google's AdWords API:

http://code.google.com/intl/iw-IL/apis/adwords/docs/developer/adwords_api_us_metros.html

but I have no problem using other databases instead.

I'd be grateful for any advice on how this can be performed using existing databases\APIs!


回答1:


You can use Yahoo's GeoPlanet database. You can easily find what's the parent of each place (WOEID - where on earth ID).

EDIT: You can also access this database using YQL.



来源:https://stackoverflow.com/questions/2708276/cities-to-metropolitan-areas

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!