Public Transit API Developer's Guide

All Next Departures by Geo coordinates

User Story

The user wants to retrieve departure information from given geo coordinates, in this case -33.857023,151.215098.

Note: This service is subject to Terms and Conditions as described in Supplier Terms for Developers Using HERE Location Platform APIs.

Request

The query parameter center specifies the location of the search. The time parameter is specified in ISO 8601 format, 2019-06-24T07:30:00. The lang parameter is specified in ISO 639-1 format, en for English.

https://transit.api.here.com/v3/multiboard/by_geocoord.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&lang=en
&center=-33.857023,151.215098
&max=2
&time=2019-06-24T08%3A00%3A00

Response

The response to the request contains the following information blocks:
  • a maximum of 40 departures per station for all nearby stations, depending on the proximity of the nearby stations to the specified location within a default radius of 500m, can be configured using the optional max and maxStn parameters
  • each departure board element includes the following information:
    • departure time
    • name and ID of the transit stop or station the service departs from
    • name and number of the transit service
    • type of the transit service
    • direction or head-sign of the service
    • optionally, the color of the service line
{
  "Res": {
    "serviceUrl": "http://internal-ptkernel-prd-v440-1314051376.us-east-1.elb.amazonaws.com/goroute/AUSTRALIA_V889_20190227",
    "MultiNextDepartures": {
      "MultiNextDeparture": [{
        "Stn": {
          "y": -33.860709,
          "x": 151.212056,
          "name": "Circular Quay Wharf 2",
          "id": "717640000",
          "distance": 496,
          "duration": "PT0H8M16S"
        },
        "NextDepartures": {
          "Dep": [{
            "time": "2019-06-24T08:16:00",
            "Stn": {
              "y": -33.860709,
              "x": 151.212056,
              "name": "Circular Quay Wharf 2",
              "id": "717640000"
            },
            "Transport": {
              "mode": 6,
              "dir": "Rose Bay",
              "name": "F4",
              "At": {
                "category": "Ferry",
                "color": "#00934D",
                "textColor": "#FFFFFF",
                "operator": "krq0SF00"
              }
            }
          }, {
            "time": "2019-06-24T08:27:00",
            "Stn": {
              "y": -33.860709,
              "x": 151.212056,
              "name": "Circular Quay Wharf 2",
              "id": "717640000"
            },
            "Transport": {
              "mode": 6,
              "dir": "Double Bay",
              "name": "F7",
              "At": {
                "category": "Ferry",
                "color": "#00934D",
                "textColor": "#FFFFFF",
                "operator": "krq0SF00"
              }
            }
          }],
          "Operators": {
            "Op": [{
              "code": "krq0SF00",
              "type": "TT",
              "name": "Sydney Ferries",
              "short_name": "SF",
              "Link": [{
                "type": "website",
                "href": "https://transit.api.here.com/r?app_name=admin&u=http://transportnsw.info",
                "text": "Sydney Ferries"
              }],
              "At": {
                "phone": "131500"
              }
            }]
          }
        }
      }]
    }
  }
}