如何以选定的语言获取Google Map AutocompleteService结果?

时间:2018-11-09 08:57:38

标签: google-maps google-maps-api-3

我通过带有参数language=zh(中文)的Google地图AutocompleteService搜索地址,这就是它给我的address_components

[
   {"long_name":"25","short_name":"25","types":["street_number"]},
   {"long_name":"Nordallee","short_name":"Nordallee","types":["route"]},
   {"long_name":"München","short_name":"München","types": ["locality","political"]},
   {"long_name":"Oberbayern","short_name":"Oberbayern","types":["administrative_area_level_2","political"]},
   {"long_name":"Bayern","short_name":"BY","types":["administrative_area_level_1","political"]},
   {"long_name":"德国","short_name":"DE","types":["country","political"]},
   {"long_name":"85356","short_name":"85356","types":["postal_code"]}
]

只有country类型的中文为long_name。我怎么也能得到中文类型long_name的{​​{1}}?

0 个答案:

没有答案