美国使用此处地图计算通行费成本

时间:2018-12-17 11:39:18

标签: here-api

使用此示例https://developer.here.com/documentation/toll-cost/topics/example-tollcost.html 和此处的描述https://developer.here.com/documentation/toll-cost/topics/resource-tollcost-input-interface.html试图计算美国道路通行费 首次发现付费公路以确保在路线上找到它-在https://www.sixt.com/toll-roads/usa/-在佛罗里达州从美国佛罗里达州蓬塔哥达到美国佛罗里达州伊斯拉莫拉达的溃败

从路线中收到两个链接

0: {linkId: "-91500228", mappedPosition: {latitude: 26.9336687, longitude: -82.0531188},…}
1: {linkId: "+897488196", mappedPosition: {latitude: 24.9598652, longitude: -80.5699824},…}

然后拨打收费请求

 https://tce.api.here.com/2/tollcost.json
    ?app_id=my_app_id
    &app_code=my_code
    &tollVehicleType=3
    &vehicleNumberAxles=2
    &emissionType=6
    &height=3.5m
    &vehicleWeight=10.0t
    &limitedWeight=10.0t
    &passengersCount=1
    &tiresCount=8
    &route=-91500228;897488196
    &detail=1

总是收到以下回复:

{"errors":[],"warnings":[{"category":1,"context":"Old response format is deprecated, please use request parameter &rollup"}],"countries":[],"onError":false}

无论在什么地方,都尝试在美国的不同位置-总是空着的国家/地区阵列

请告知我所缺少的,谢谢