Public Transit API Developer's Guide

Earlier/Later Route (Deprecated)

Note: This endpoint has been deprecated and will be removed in the near future.

To find an earlier/later transit route, the following mandatory parameters are required in the request:

  • your authentication credentials, app_id and app_code (see Acquiring Credentials for more details)
  • the service URL
  • and the context.
The example below requests transit routes for all transit modes basing on the prior Transit Route request.
Note: The serviceUrl and ctx values can be expired. You can create a new Transit Route request to get the up-to-date values. See Transit Route for more information.
https://cit.transit.api.here.com/metarouter/rest/routeservice/v2/mroute
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&serviceUrl={Service URL from 'Res' element in previous transit route response}
&ctx=(Context from 'Connections' element in previous transit route response)
&direction=F

By default, the following information will be returned:

  • A total of 3 transit connections or journeys right before the requested Transit Route or after it depending on the value of direction attribute
  • Each journey will include the following information:
    • Multiple transit segments, each segment (representing either a pedestrian or a transit) containing departure/arrival times, duration and coordinates
    • The transit segment will show the actual stops/stations of departure, arrival and all intermediate stops in between
  • A set of operators who run the services included in the journeys, including operator code, operator name and links to operator websites, if any.

You can further refine the route results by submitting the requests with these optional parameters:

  • max parameter can be used to specify the max number of connections to fetch
  • details specifies if intermediate stops' information should be returned

For a complete set of these parameters see Earlier/Later Journeys (Deprecated).

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.