打着招呼,
由于费用原因,我放弃了使用Google地方信息,并决定选择使用here geocode api
。我开始使用Places Search API,它工作得很好,但没有返回lat
和lng
。
所以我的解决方案如下
Search API
获取位置IDlocationId
调用geocode api来获取lat
和lng
这个解决方案有效,但显然很慢。所以我的问题是
干杯
请使用Autosuggest而不是Places Search API。
您可以在Autosuggest API中找到以下字段
"title": "restaurant",
"highlightedTitle": "<b>rest</b>aurant",
"category": "restaurant",
"href": "https://...",
"type": "urn:nlp-types:search",
"resultType":"category"