从 HERE 反向地理编码 API 获取速度限制 [英] Getting Speed Limits from HERE Reverse Geocode API

查看:36
本文介绍了从 HERE 反向地理编码 API 获取速度限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用来自 HERE 的反向地理编码端点来提取给定纬度和经度的速度限制.我在 locationattributes 参数中包含了 linkInfo 并且在结果正文中获得了速度限制,但它不再显示.

I'm using the reverse geocode endpoint from HERE to extract speed limits for a given latitude and longitude. I am including linkInfo in the locationattributes parameter and was getting speed limits in the results body but it is no longer showing up.

以下是一个端点被命中的例子:https://reverse.geocoder.api.here.com/6.2/reversegeocode.json?app_id={{app_id}}&app_code={{app_code}}&prox=40.1245292,-74.8721781,50&mode=retrieveAddresses&locationattributes=linkInfo&gen=9

Here is an example of the endpoint being hit: https://reverse.geocoder.api.here.com/6.2/reversegeocode.json?app_id={{app_id}}&app_code={{app_code}}&prox=40.1245292,-74.8721781,50&mode=retrieveAddresses&locationattributes=linkInfo&gen=9

这是从 HERE 获取限速的正确方法吗?

Is this the correct method to get speed limits from HERE?

推荐答案

Reverse Geocoder API 在响应中表示speedcategory,对应不同的限速范围,可以参考如下:

Reverse Geocoder API represents speedcategory in the response, which corresponds to different ranges of speed limit, that can be referred from below :

developer.here.com/documentation/geocoder/topics/resource-type-speed-category.html

developer.here.com/documentation/geocoder/topics/resource-type-speed-category.html

回复:

链接信息:{功能类:5,旅行路线: ["西北",SE"],速度类别:SC6",链接标志:[铺好的"],访问标志:[汽车",摩托车","公交车",出租车",拼车",行人",卡车","交货","紧急车辆",通过流量"]}

LinkInfo: { FunctionalClass: 5, TravelDirection: [ "NW", "SE" ], SpeedCategory: "SC6", LinkFlags: [ "Paved" ], AccessFlags: [ "Automobiles", "Motorcycles", "Buses", "Taxis", "Carpools", "Pedestrians", "Trucks", "Deliveries", "EmergencyVehicle", "ThroughTraffic" ] }

这篇关于从 HERE 反向地理编码 API 获取速度限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆