我们正在尝试找到一种用于HERE映射的API方法,该方法将使我们既可以搜索地址完成信息,也可以搜索公司名称
我们都可以做,但是一种方法不能返回漂亮的地址结构化信息
查看示例
https://places.cit.api.here.com/places/v1/autosuggest?in=-12.3917,49.1619,4.6265,59.3355&q=10 唐宁街&app_id = xxxxx&app_code = xxxxxx&result_types =地址
返回:
..
"highlightedVicinity": "Preston<br/>Preston<br/>PR1 4RH<br/>United Kingdom"
..
http://autocomplete.geocoder.api.here.com/6.2/suggest.json?app_id=xxxxx&app_code=xxxxxx&query=ox27 0hj&country = GBR
返回 ....
"address": {
"country": "United Kingdom",
"state": "England",
"county": "Oxfordshire",
"city": "Bicester",
"district": "Marsh Gibbon",
"postalCode": "OX27 0HJ"
},