Public Transit API v3 Developer's Guide


PathSeg specifies a single transit path between two stops. The two stop IDs are available in the properties from and to and you can get further information about them on the Stations section of the response.

Table 1. PathSeg Type Attributes
Attribute Always Included Type Description
id Yes ID Indicates ID of the element. All PathSeg returned will have a unique ID.
from Yes StationId Origin station ID for the path.
to Yes StationId Destination station ID for the path.
duration - TimeDelta Average run duration between the stations from and to. Real duration may vary depending on the day or time of the day.
Table 2. PathSeg Type Elements
Element Always Included Type Description
Graph - Graph It contains the real geometry of the transit line. When this element is not present, the real geometry is not available and the user can use the stops' location to draw a straight line.