我目前正在使用 HERE API,使用自动建议来获取我的结果。在每个响应的地址对象中,我只得到如下所示的“标签”:
"address": { "label": "Resort Mark Brandenburg, An der Seepromenade 20, 16816 Neuruppin, Germany" },
有没有办法选择完整的信息,比如discover
或autocomplete
做?喜欢在地址对象中有国家代码、城市、街道吗?
在此页面https://developer.here.com/documentation/geocoding-search-api/api-reference-swagger.html的自动建议菜单中,我们可以看到响应样本中的所有信息。
我现在正在使用这个查询:
https://autosuggest.search.hereapi.com/v1/autosuggest?apiKey=MYAPIKEY&result_types=address,place&in=bbox:0.5833,42.9667,2.241295,44.210550&in=countryCode:FRA&q=apitol&limit=5&content-type=application/json&lang=fr-fr