Public Transit API Developer's Guide


LineSegments specifies a list of segments related to a specific line. Two list of segments are provided - main and all. A segment is a path between 2 adjacent stations on a line. See PathSeg for more details

main - The main sequence of segments composing a line. The main segment represents that part of the line which has the most frequent number of runs in a day.

all - Unorderd list of all segments of the line.

Table 1. LineSegments Type Attributes
Attribute Always Included Type Description
seg_ids Yes ID List of PathSeg@id or RefPathSeg@id elements.
type Yes LineSegmentsType Possible values are either "main" or "all".

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