Routing API Developer's Guide

Calculating Transit Departure Times

In timetable routing, the service provides scheduled transit departure times in the response, based on information provided by public transport routing companies. The routing engine incorporates a time buffer between walking into the station and the actual transit departure time, known as a waitTime. You can calculate the actual transit departure time by adding the waitTime shown in the response to the time associated with the maneuver.

The waitTime is also included in the overall travelTime for the route. If you would like strictly the journey time, you must subtract associated waitTime values from the overall travelTime.

Example: Calculating Departure Time

In the public transport routing response example below, we see that the actual train departure time is 2013-04-10T11:51:00+02, which is 60 seconds later than the time specified as the maneuver time.


{
  "position": {...},
  "instruction": "...",
  "travelTime": 720,
  "time": "2013-04-10T11:50:00+02",
  "action": "enter",
  "waitTime": 60,
  "_type": "PublicTransportManeuverType"
}

Example: Calculating Departure Time with a Line Change

If the route itinerary contains a transit line change, waitTime specifies the amount of time available to change lines. In this example, the journey itself takes only six minutes. Four minutes waitTime is required to change the transit line:


{
  "position": {...},
  "instruction": "...",
  "travelTime": 600,
  "time": "2013-04-10T12:02:00+02",
  "action": "change",
  "waitTime": 240,
  "_type": "PublicTransportManeuverType"
}

See also: ManeuverType , PublicTransportManeuverType .

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.