例如,此url不返回任何成本:
https://tce.api.here.com/2/tollcost.json?app_id=xxxx&app_code=xxxx&tollVehicleType=3&rollup=country¤cy=EUR&route=-1201736915;-1126692456以下是响应:
{"errors":[],"warnings":[],"costsByCountry":[],"onError":false}如果使用具有相同坐标的舰队api calculateroute.json:
https://fleet.api.here.com/2/calculateroute.json?app_id=xxxx&app_code=yyyy&waypoint0=49.45276,8.51315&detail=1&waypoint1=46.18977,6.24859&routelegattributes=none&routeattributes=none&maneuverattributes=none&linkattributes=none&legattributes=none¤cy=EUR&tollVehicleType=3&mode=fastest;truck;traffic:disabled&rollups=country&alternatives=0响应包含成本93.89欧元:
"cost":{"totalCost":"93.89","currency":"EUR","details":{"driverCost":"0.0","vehicleCost":"0.0","tollCost":"93.89","optionalValue":0.0}}两个apis不应该返回相同的成本吗?
发布于 2019-12-30 18:18:58
https://stackoverflow.com/questions/59527607
复制相似问题