我使用自动完成功能和angularjs(http://ngmodules.org/modules/ngAutocomplete)。我想回到一个选定城市的大陆,但我怎么能这样做呢? 我得到了下一个请求(例如,回复"阿拉巴马州,纽约州,美国"):
address_components: Array[6]
adr_address: "Alabama, NY 14013, USA"formatted_address: "Alabama, NY 14013, USA"geometry: vicinity: "Alabama"
在address_components数组中,没有任何关于大陆的点: address_components:
Array[6]
0:
long_name: "Alabama"
short_name: "Alabama"types:
Array[2]0: "locality"
1:
long_name: "Alabama"
short_name: "Alabama"
types: Array[2]0: "administrative_area_level_3"
2:
long_name: "Genesee County"
short_name: "Genesee County"
types: Array[2]0: "administrative_area_level_2"
3:
long_name: "New York"
short_name: "NY"
types: Array[2]0: "administrative_area_level_1"
4:
long_name: "United States"
short_name: "US"
types: Array[2]0: "country"
5:
long_name: "14013"
short_name: "14013"
types: Array[1]0: "postal_code"
有什么想法吗?感谢。