HERE 地图:public 公交 API 的实时覆盖

HERE Maps: Realtime coverage for public transit API

有没有人设法从 HERE Maps Public Transit API 获取实时信息?

使用简单的路由将中央车站(澳大利亚悉尼)的坐标输入到环形码头站,如下所示:

https://transit.ls.hereapi.com/v3/route.json?dep=-33.883271,151.207000&arr=-33.861508%2C151.210564&time=2019-12-31T22:30:00&routing=sr&apiKey=<apiKey>

实时下coveredreturns:

{
    "Res": {
        "serviceUrl": "https://transit.ls.hereapi.com/transit/v3/route.json",
        "Message": {
            "code": "GW0001",
            "level": "E",
            "subcode": "NO_COV",
            "text": "Out of coverage"
        }
    }
}

为了获得实时的交通路线,有一个名为

的参数

routingMode = realtime

请参阅以下请求(已从您的请求中删除路由:不是有效参数)

https://transit.ls.hereapi.com/v3/route.json?dep=-33.883271,151.207000&arr=-33.861508%2C151.210564&time=2020-01-02T16:32:00&apiKey=your_apiKey&routingMode=realtime

有关详细文档,请访问 here

希望对您有所帮助!