目录

TransitSection

Class Info

public class TransitSection

Entity class for public transit sections.

Public Method Summary

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

[h2]getActions

Method

public List<Actions> getActions()

Obtains a list of executed actions.

Returns

Type

Description

List<Actions>

A list of executed actions.

[h2]getAgency

Method

public Agency getAgency()

Obtains information about a specific agency.

Returns

Type

Description

Agency

Information about a specific agency.

[h2]getArrival

Method

public Arrival getArrival()

Obtains the public transit arrival information.

Returns

Type

Description

Arrival

Public transit arrival information.

[h2]getDeparture

Method

public Departure getDeparture()

Obtains the public transit departure information.

Returns

Type

Description

Departure

Public transit departure information.

[h2]getFares

Method

public List<Fares> getFares()

Obtains a list of ticket fees for the route.

Returns

Type

Description

List<Fares>

A list of ticket fees for the route.

[h2]getId

Method

public String getId()

Obtains the unique ID.

Returns

Type

Description

String

Unique ID.

[h2]getIntermediateStops

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

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.

[h2]getLanguage

Method

public String getLanguage()

Obtains the language of the local section.

Returns

Type

Description

String

Language of the local section.

[h2]getNotices

Method

public List<Notices> getNotices()

Obtains a list of notifications related to the route.

Returns

Type

Description

List<Notices>

A list of notifications related to the route.

[h2]getPassthrough

Method

public List<Passthrough> getPassthrough()

Obtains a list of pass-through waypoints.

Returns

Type

Description

List<Passthrough>

A list of pass-through waypoints.

[h2]getPolyline

Method

public String getPolyline()

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

Returns

Type

Description

String

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

[h2]getSummary

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

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.

[h2]getTransport

Method

public Transport getTransport()

Obtains the transport tool.

Returns

Type

Description

Transport

Transport tool.

[h2]getTravelSummary

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

Type

Description

TravelSummary

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

[h2]getTurnByTurnActions

Method

public List<TurnByTurnActions> getTurnByTurnActions()

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

Returns

Type

Description

List<TurnByTurnActions>

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

[h2]getType

Method

public String getType()

Obtains the identifier type.

Returns

Type

Description

String

Identifier type.

[h2]toString

Method

public String toString()

Converts an object into a character string.

Returns

Type

Description

String

Character string of the object.