Public Transit API v3 Developer's Guide

Line Info (Deprecated)

Note: This endpoint has been deprecated and OLP will support this in the near future.

The goal of the Line Info service is to provide information about transit lines going through a certain station.

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

Typically, but not guaranteed to be, 20
     bytes Base64 URL-safe encoded string used for the authentication of
     the client application. If you use the app ID/app code option, you
     need to include an app_id and
     app_code with every request. For further
     details, see Acquiring Credentials.

app_code String

Typically, but not guaranteed to be, 20
     bytes Base64 URL-safe encoded string used for the authentication of
     the client application. If you use the app ID/app code option, you
     need to include an app_id and
     app_code with every request. For further
     details, see Acquiring Credentials.

apiKey String

A 43-byte Base64 URL-safe encoded string used for the authentication of the client
     application. As a logged in user, you can generate it at
     https://developer.here.com/projects.
     API Keys never expire but you can invalidate your API Keys at any time. You cannot have more
     than two API Keys for one app at the same time. You must include an apiKey with every request. For further details, see Acquiring Credentials.

stnId String Specifies station id where the lines are located.
Table 2. Optional Parameters
Parameter Data Type Description
max Integer

Specifies the maximum number of unique lines the response should include.

Minimum = 1, maximum = 20

The default is 10 lines.

modes String

Specifies the transit type filter used to determine which types of transit to include in the response.
By default the parameter is omitted, meaning all supported transit types are permitted.
See Transit Modes page for more information.

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.

name String Specifies the line name to search.
strict Integer Specifies which station's line info the response should include.

Specify strict=1 to include only line info from the given station id and strict=0 to include line info from the station group.

The default is 1.