是否有机会更改以下邮政编码63126的Geocode API响应,因为它导致对地方政治的short_name和long_name都有相同的响应。
请检查long_name和short_name
的预期数据{
"long_name" : "St. Louis",
"short_name" : "St. Louis",
"types" : [ "locality", "political" ]
},
https://maps.googleapis.com/maps/api/geocode/json?address=63126&key=(useyourkey)
{
"results" : [
{
"address_components" : [
{
"long_name" : "63126",
"short_name" : "63126",
"types" : [ "postal_code" ]
},
{
"long_name" : "St. Louis",
"short_name" : "St. Louis",
"types" : [ "locality", "political" ]
},
{
"long_name" : "St. Louis County",
"short_name" : "St Louis County",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "Missouri",
"short_name" : "MO",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "United States",
"short_name" : "US",
"types" : [ "country", "political" ]
}
答案 0 :(得分:1)
无法更改API响应,但您可以在https://developers.google.com/issue-tracker/
中报告错误或功能请求虽然我没有看到回复有任何问题。 short_name和long_name对于地方政治是相同的,因为圣路易斯没有更短的路或更长的路。