Search code examples
restmapshere-apihere-maps-rest

HERE Maps: Realtime coverage for public transit API


Does anyone manage to get real time information from the HERE Maps Public Transit API?

Inputting coordinates for Central Station (Sydney, Australia) to Circular Quay Station using simple routing like so:

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>

which is covered under real time returns:

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

Solution

  • In order to get the real time transit route there is a parameter called

    routingMode = realtime

    see the below request (Removed routing from your request: not a valid parameter)

    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
    

    For detail documentation please visit here.

    Hope this helps!