这里的API-最大半径是多少

时间:2019-09-23 15:21:34

标签: here-api

我找不到任何有关反向地理编码端点最大半径的文档。一旦超过100英里,我似乎看不到某个位置周围城市的返回结果有任何差异。有最大半径吗?

1 个答案:

答案 0 :(得分:0)

该API当前支持retrieve areas的最大半径为50公里。它取决于几个因素,您使用的是哪种模式以及gen参数,contry过滤器等,还有更多信息。邻近度软过滤器 接近参数也是一个软过滤器。

这里有一个地理坐标对和一个半径(以 (米)来定义过滤条件。这可以源自用户的定位。 设备加上半径。

While there is no hard limit for the radius, no results may be returned depending
on the input search string and Geocoder internal ranking. The smaller the radius, the more relevant
will be the results returned.

建议将半径定义为250 km(250000)以下。 searchtext = paris&prox = 30.6733,-82.0232,100000 结果不按与位置的距离排序。 例如,请参见以下请求,如果您更改半径,则会给您不同的响应。

https://reverse.geocoder.api.here.com/6.2/reversegeocode.json?prox=41.8842,-87.6388,2500&mode=retrieveAddresses&maxresults=5&gen=9&app_id=XXX&app_code=YYYY

替换您的appId和appCode。

希望这会有所帮助。