Public Transit API Developer's Guide

Earlier/Later Journeys (Deprecated)

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

Use the mroute resource to request earlier/later journeys from a specific location/station.

.../v3/mroute.{format}?<parameter>=<value>...
      
Table 1. Mandatory Parameters
Parameter Data Type Description
app_id String

A 20 bytes Base64 URL-safe encoded string used for the authentication of the client application.
You must include an app_id and app_code with every request. To get an app_code assigned to you, please see Acquiring Credentials.

app_code String

A 20 bytes Base64 URL-safe encoded string used for the authentication of the client application.
You must include an app_id and app_code with every request. To get an app_code assigned to you, please see Acquiring Credentials.

ctx String Specifies a context for the request. This parameter has to be url encoded.

Example: cs.018672146.1316158243#2 needs to be instead: cs.018672146.1316158243%232

serviceUrl String Specifies the serviceUrl for the request. This parameter has to be url encoded.

Example: http://ip-10-15-2-87.eu-west-1.compute.internal:8080/bin/G2D/extxml.exe needs to be instead: http%3A%2F%2Fip-10-15-2-87.eu-west-1.compute.internal%3A8080%2Fbin%2FG2D%2Fextxml.exe

Table 2. Optional Parameters
Parameter Data Type Description
callbackFunc String Specifies an arbitrary string used to wrap the JSON object in the response.
callbackId Integer If you specify the parameter callbackId, specifies the first argument to the function specified by the callbackFunc.
direction String Specifies the direction. The possible values are F (Forward) and B (Backward).

The default is F.

lang String Specifies the language of the response. The value complies with the ISO 639-1 standard and defaults to en.
max Integer Specifies the maximum number of connection the response should include.

The default is 3.

maneuvers Integer Requests turn-by-turn walk maneuvers information in the response.

1 (enabled), 0 (disabled)

The default is 0.

graph Integer Requests coordinate pairs to allow the drawing of a polyline for the route. The possible values are:

1 (enabled), 0 (disabled)

The default is 0.

details Integer Requests the inclusion of a list of intermediate stops within the routes in the response. If enabled, the response includes stop/station names, WGS-84 geocoordinates, and the departure/arrival times at the stops.

1 (enabled), 0 (disabled)

The default is 1.