Google maps api 3 谷歌地图API没有';t(始终)返回正确的英国郡以获得一个位置。我如何/在哪里可以可靠地获取此信息?
我注意到,在英国的地方:Google maps api 3 谷歌地图API没有';t(始终)返回正确的英国郡以获得一个位置。我如何/在哪里可以可靠地获取此信息?,google-maps-api-3,google-places-api,Google Maps Api 3,Google Places Api,我注意到,在英国的地方: country = United Kingdom administrative_area_level_1 - England (or Scotland, Wales, or Northern Ireland) administrative_area_level_2 - this MAY OR MAY NOT provide the correct county name. 例如: Google Place ID: hIJrz5bz8xtbkgRBXTcwY3iUiw
country = United Kingdom
administrative_area_level_1 - England (or Scotland, Wales, or Northern Ireland)
administrative_area_level_2 - this MAY OR MAY NOT provide the correct county name.
例如:
Google Place ID: hIJrz5bz8xtbkgRBXTcwY3iUiw
Name: Bridgend Tennis, Squash and Bowls Club
Google Map: https://goo.gl/maps/U3AaesWwbxMksuDF6
administrative_area_level_1 = Wales
administrative_area_level_2 = Bridgend County Borough
post_code = CF31 3AZ
但问题是这个地方的县城是格拉摩根(或者可能是格拉摩根中部)
我已经看过很多这样的例子,有时行政区2级包含正确的县名,有时不包含。API调用返回的数据中没有其他地方提到正确的县名称
因此,我的问题是:如何可靠地从谷歌地图API获取正确的英国国家名称。。。还是其他地方
谢谢
"result": {
"address_components": [
{
"long_name": "Church Road",
"short_name": "Church Rd",
"types": [
"route"
]
},
{
"long_name": "Bridgend",
"short_name": "Bridgend",
"types": [
"postal_town"
]
},
{
"long_name": "Bridgend County Borough",
"short_name": "Bridgend County Borough",
"types": [
"administrative_area_level_2",
"political"
]
},
{
"long_name": "Wales",
"short_name": "Wales",
"types": [
"administrative_area_level_1",
"political"
]
},
{
"long_name": "United Kingdom",
"short_name": "GB",
"types": [
"country",
"political"
]
向谷歌报告数据问题或查找其他API。。。