1

我正在搜索一个 API,它允许我检索我搜索的国家/地区的州/省列表。我重复 countryName 或 ISO,而不是Latlng / 地理编码。

我遇到的最接近的是: https ://code.google.com/p/risevision/wiki/States_v2

但是,这仅适用于美国和加拿大。

一个包含国家和州/省的数据库是我的第二选择。

有人有其他想法吗?

4

2 回答 2

1

Fusion Tables 中的 Natural Earth Data 包含该数据。

https://www.google.com/fusiontables/DataSource?docid=19lLpgsKdJRHL2O4fNmJ406ri9JtpIIk8a-AchA

例子

于 2013-10-15T12:36:21.670 回答
-2

您可以使用Geoname 的 Webservices

它提供了 Rest API,但您需要注册

更新:

试试下面的 API

http://api.geonames.org/countryInfo?country=US&username=demo

回复:

<geonames>
<country>
<countryCode>US</countryCode>
<countryName>United States</countryName>
<isoNumeric>840</isoNumeric>
<isoAlpha3>USA</isoAlpha3>
<fipsCode>US</fipsCode>
<continent>NA</continent>
<continentName>North America</continentName>
<capital>Washington</capital>
<areaInSqKm>9629091.0</areaInSqKm>
<population>310232863</population>
<currencyCode>USD</currencyCode>
<languages>en-US,es-US,haw,fr</languages>
<geonameId>6252001</geonameId>
<west>-124.733253</west>
<north>49.388611</north>
<east>-66.954811</east>
<south>24.544245</south>
</country>
</geonames>
于 2013-10-15T11:02:38.947 回答