We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

TransitSection

Expand

Class Info

public class TransitSection

Entity class for public transit sections.

Public Method Summary

Expand

Qualifier and Type

Method Name and Description

List<Actions>

getActions()

Obtains a list of executed actions.

Agency

getAgency()

Obtains information about a specific agency.

Arrival

getArrival()

Obtains the public transit arrival information.

Departure

getDeparture()

Obtains the public transit departure information.

List<Fares>

getFares()

Obtains a list of ticket fees for the route.

String

getId()

Obtains the unique ID.

List<IntermediateStops>

getIntermediateStops()

Obtains intermediate stations between the departure place and destination for this public transit route. If the information is unavailable or not requested, the list of intermediate stations may be empty.

String

getLanguage()

Obtains the language of the local section.

List<Notices>

getNotices()

Obtains a list of notifications related to the route.

List<Passthrough>

getPassthrough()

Obtains a list of pass-through waypoints.

String

getPolyline()

Obtains the polyline (lossy compression of coordinate pairs or coordinate triplets).

Summary

getSummary()

Obtains the summary of key attributes (such as the duration and length) of the whole section, including preActions, postActions, and a part of the travel.

Transport

getTransport()

Obtains the transport tool.

TravelSummary

getTravelSummary()

Obtains the summary of key attributes (such as the duration and length) between departure and arrival, excluding preActions and postActions.

List<TurnByTurnActions>

getTurnByTurnActions()

Obtains a list of turn-by-turn actions on the driving part of the section.

String

getType()

Obtains the identifier type.

String

toString()

Converts an object into a character string.

Public Methods

getActions

Expand

Method

public List<Actions> getActions()

Obtains a list of executed actions.

Returns

Expand

Type

Description

List<Actions>

A list of executed actions.

getAgency

Expand

Method

public Agency getAgency()

Obtains information about a specific agency.

Returns

Expand

Type

Description

Agency

Information about a specific agency.

getArrival

Expand

Method

public Arrival getArrival()

Obtains the public transit arrival information.

Returns

Expand

Type

Description

Arrival

Public transit arrival information.

getDeparture

Expand

Method

public Departure getDeparture()

Obtains the public transit departure information.

Returns

Expand

Type

Description

Departure

Public transit departure information.

getFares

Expand

Method

public List<Fares> getFares()

Obtains a list of ticket fees for the route.

Returns

Expand

Type

Description

List<Fares>

A list of ticket fees for the route.

getId

Expand

Method

public String getId()

Obtains the unique ID.

Returns

Expand

Type

Description

String

Unique ID.

getIntermediateStops

Expand

Method

public List<IntermediateStops> getIntermediateStops()

Obtains intermediate stations between the departure place and destination for this public transit route. If the information is unavailable or not requested, the list of intermediate stations may be empty.

Returns

Expand

Type

Description

List<IntermediateStops>

Intermediate stations between the departure place and destination for this public transit route. If the information is unavailable or not requested, the list of intermediate stations may be empty.

getLanguage

Expand

Method

public String getLanguage()

Obtains the language of the local section.

Returns

Expand

Type

Description

String

Language of the local section.

getNotices

Expand

Method

public List<Notices> getNotices()

Obtains a list of notifications related to the route.

Returns

Expand

Type

Description

List<Notices>

A list of notifications related to the route.

getPassthrough

Expand

Method

public List<Passthrough> getPassthrough()

Obtains a list of pass-through waypoints.

Returns

Expand

Type

Description

List<Passthrough>

A list of pass-through waypoints.

getPolyline

Expand

Method

public String getPolyline()

Obtains the polyline (lossy compression of coordinate pairs or coordinate triplets).

Returns

Expand

Type

Description

String

Polyline (lossy compression of coordinate pairs or coordinate triplets).

getSummary

Expand

Method

public Summary getSummary()

Obtains the summary of key attributes (such as the duration and length) of the whole section, including preActions, postActions, and a part of the travel.

Returns

Expand

Type

Description

Summary

Summary of key attributes (such as the duration and length) of the whole section, including preActions, postActions, and a part of the travel.

getTransport

Expand

Method

public Transport getTransport()

Obtains the transport tool.

Returns

Expand

Type

Description

Transport

Transport tool.

getTravelSummary

Expand

Method

public TravelSummary getTravelSummary()

Obtains the summary of key attributes (such as the duration and length) between departure and arrival, excluding preActions and postActions.

Returns

Expand

Type

Description

TravelSummary

Summary of key attributes (such as the duration and length) between departure and arrival, excluding preActions and postActions.

getTurnByTurnActions

Expand

Method

public List<TurnByTurnActions> getTurnByTurnActions()

Obtains a list of turn-by-turn actions on the driving part of the section.

Returns

Expand

Type

Description

List<TurnByTurnActions>

A list of turn-by-turn actions on the driving part of the section.

getType

Expand

Method

public String getType()

Obtains the identifier type.

Returns

Expand

Type

Description

String

Identifier type.

toString

Expand

Method

public String toString()

Converts an object into a character string.

Returns

Expand

Type

Description

String

Character string of the object.