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

查看:48
本文介绍了从这里获得反向地理编码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

这是从此处获取速度限制的正确方法吗?

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

推荐答案

反向Geocoder API在响应中表示速度类别,它对应于不同的速度限制范围,可以从下面进行引用:

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

响应:

LinkInfo:{FunctionalClass:5TravelDirection:["NW","SE"], SpeedCategory:"SC6" ,LinkFlags:[已铺好"],AccessFlags:[汽车",摩托车","Buses",出租车",拼车",行人",卡车",交货",紧急车辆",直通交通"]}

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

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

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