【问题标题】:here-api CalculateRoute using Address instead Geohere-api CalculateRoute 使用地址而不是地理
【发布时间】:2020-08-10 19:09:03
【问题描述】:

有没有办法使用源地址和目标地址而不是源地址和目标地址为卡车调用CalculateRoute API。 所以,基本上,这个地址为https://route.ls.hereapi.com/routing/7.2/calculateroute.json?apiKey={apiKey}&mode=fastest;truck&waypoint0=geo!52.534924,13.199499&waypoint1=geo!52.532767,13.198141的API

目前,我们正在使用 Geo 执行此操作,但响应时间很长,因为我们必须检索 SourceGeo、DestinationGeo 和 CalculateRoute。

【问题讨论】:

    标签: here-api


    【解决方案1】:

    在计算路线 API 中可以通过三种方式指定航点。

    1. 地理位置
    2. 街道参考
    3. 链接ID

    https://developer.here.com/documentation/routing/dev_guide/topics/resource-param-type-waypoint.html

    但是,您可以在反向 Geocoder API 中传递地址,获取准确的航点并在路线 API 中使用它来计算路线,

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-07-18
      • 2020-11-12
      • 1970-01-01
      • 2019-06-08
      • 2014-05-23
      • 2013-09-28
      • 1970-01-01
      相关资源
      最近更新 更多