Public Transit API v3 Developer's Guide


Journey type provides details for a journey. This include traveling duration, distance and a list of intermediate stops for transit modes.

Table 1. Journey Type Attributes
Attribute Always Included Type Description
duration Yes TimeDelta Expected time to cover that distance.
intermediate - Integer This attribute is set to 0 if for a specific transit journey we are not able to provide intermediate stops.
Note: For other modes of transport beside transit, this parameter is not provided.

The default is 1.

distance - Integer Distance to cover in meters. If "units=imperial" is passed as request parameter the unit will be feet.
Table 2. Journey Type Elements
Element Always Included Type Description
Stop - List of Stop Specifies station where the line stops.