最佳答案
我认为 Google Geocode api可能是你要找的。该页面上有文档,用于使用如下查询搜索位置的 xml 输出:
http://maps.googleapis.com/maps/api/geocode/xml?address=<SEARCH_TERM_HERE>&sensor=true
看起来很强大。通过 searching for the town我住我在 xml 中得到多个结果,每个结果包含区域、坐标、区域、国家、邮政编码等。
关于html - 什么是 xml 建议的 url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7051563/