我通过带有参数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}}?