HERE iOS SDK Developer's Guide

NMATransitManeuver

Class Summary

class NMATransitManeuver

Derived from: NMAManeuver

Represents a transit maneuver, which describes a section of a NMARoute that involves taking some form of public transport.

Include: NMAKit.framework/headers/NMATransitManeuver.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMATransitManeuver

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, assign] NSString *  arrivalStopName

The name of the last stop on the transit maneuver

[readable, assign] NSString *  departureStopName

The name of the first stop on the transit maneuver

[readable, assign] NSString *  lineName

The line name for the NMATransitManeuver

[readable, assign] NMATransitLineStyle   lineStyle

The style in which the line is drawn on typical maps of the local public transit operator

[readable, assign] UIColor *  primaryLineColor

The primary color of the NMATransitManeuver in the local public transit operator's color scheme

[readable, assign] UIColor *  secondaryLineColor

The secondary color of the NMATransitManeuver in the local public transit operator's color scheme

[readable, assign] NSString *  systemOfficialName

The name of the system operating the NMATransitManeuver

[readable, assign] NSString *  systemShortName

The name, in a shorter or abbreviated version if available, of the system operating the NMATransitManeuver

[readable, assign] NSString *  terminusStopName

The terminus stop name of the transit line for the NMATransitManeuver

[readable, assign] NSTimeInterval  transitTravelTime

The estimated transit travel time, in seconds, for the NMATransitManeuver

[readable, assign] NMATransitType   transitType

The NMATransitType of the transit system offering service for the NMATransitManeuver

[readable, assign] NSString *  transitTypeName

The type of the line as a string in the public transit operator's vocabulary

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nonnull instancetype) init

Class Method Summary

Table 3. Class Methods
Class Methods

+(nonnull instancetype) new

Class Details

Represents a transit maneuver, which describes a section of a NMARoute that involves taking some form of public transport.

Each continuous trip on a transit vehicle is represented by one NMATransitManeuver. If the route requires a line change or a transfer to a different transit vehicle, the new transit trip will be represented by another NMATransitManeuver.

Public Property Details

[readable, assign] NSString * arrivalStopName

The name of the last stop on the transit maneuver.

This is the same as the name of the arrival stop of the last NMATransitRouteElement.

Note:

The stop name will be nil if unavailable.

Note:

It is localized to the locale of the region.

[readable, assign] NSString * departureStopName

The name of the first stop on the transit maneuver.

This is the same as the name of the departure stop of the first NMATransitRouteElement.

Note:

The stop name will be nil if unavailable.

Note:

It is localized to the locale of the region.

[readable, assign] NSString * lineName

The line name for the NMATransitManeuver.

For example, "1", "2", "3", "4", "5", ... for New York City Transit-Subway.

Note:

It is localized to the locale of the region.

[readable, assign] NMATransitLineStyle  lineStyle

The style in which the line is drawn on typical maps of the local public transit operator.

Note:

NMATransitLineStyleUndefined will be returned when undefined.

[readable, assign] UIColor * primaryLineColor

The primary color of the NMATransitManeuver in the local public transit operator's color scheme.

Note:

Color will be valid if line style is not undefined otherwise it will be transparent.

[readable, assign] UIColor * secondaryLineColor

The secondary color of the NMATransitManeuver in the local public transit operator's color scheme.

Note:

Color will be valid if line style is dotted or dashed otherwise it will be transparent.

[readable, assign] NSString * systemOfficialName

The name of the system operating the NMATransitManeuver.

For example, "New York City Transit-Subway".

Note:

It is localized to the locale of the region.

[readable, assign] NSString * systemShortName

The name, in a shorter or abbreviated version if available, of the system operating the NMATransitManeuver.

For example, "NYC Transit-Subway".

Note:

It is localized to the locale of the region.

[readable, assign] NSString * terminusStopName

The terminus stop name of the transit line for the NMATransitManeuver.

Note:

Only available in online mode.

Note:

It is localized to the locale of the region.

[readable, assign] NSTimeInterval transitTravelTime

The estimated transit travel time, in seconds, for the NMATransitManeuver.

[readable, assign] NMATransitType  transitType

The NMATransitType of the transit system offering service for the NMATransitManeuver.

[readable, assign] NSString * transitTypeName

The type of the line as a string in the public transit operator's vocabulary.

For example, "TRANSIT_CATEGORY_RAIL_CITYMETRO" for NMATransitMetroRail.

Note:

It is localized to the locale of the region.

Instance Method Details

-(nonnull instancetype) init

Instances of this class should not be initialized directly

Class Method Details

+(nonnull instancetype) new

Instances of this class should not be initialized directly