使用此API准确的地理编码数据

问题描述 投票:0回答:1

打着招呼,

由于费用原因,我放弃了使用Google地方信息,并决定选择使用here geocode api。我开始使用Places Search API,它工作得很好,但没有返回latlng

所以我的解决方案如下

  1. Search API获取位置ID
  2. 通过locationId调用geocode api来获取latlng

这个解决方案有效,但显然很慢。所以我的问题是

  1. 有没有办法在一个地理编码调用中获取多个locationIds?
  2. 有没有更好的服务那么准确,还可以返回lat和lng?

干杯

geocoding here-api here-autocomplete
1个回答
0
投票

请使用Autosuggest而不是Places Search API。

您可以在Autosuggest API中找到以下字段

  "title": "restaurant",
  "highlightedTitle": "<b>rest</b>aurant",
  "category": "restaurant",
  "href": "https://...",
  "type": "urn:nlp-types:search",
  "resultType":"category"

示例图像enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.