HereSDKDemandPublicTransportRouteLeg
@interface HereSDKDemandPublicTransportRouteLeg : NSObject
A class representing a public transport route leg.
-
Mode of transportation
Declaration
Objective-C
@property (readonly, nonatomic) HereSDKDemandPublicTransportRouteLegTransportMode transportMode;
Swift
var transportMode: HereSDKDemandPublicTransportRouteLegTransportMode { get }
-
Duration of the section in seconds
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSNumber *duration;
Swift
var duration: NSNumber? { get }
-
Distance of the section (units set in HereSDKDemandTransitOptions)
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSNumber *distance;
Swift
var distance: NSNumber? { get }
-
If relevant/applicable
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *line;
Swift
var line: String? { get }
-
The starting point of the route
Declaration
Objective-C
@property (readonly, nonatomic) HereSDKDemandLocation *_Nonnull origin;
Swift
var origin: HereSDKDemandLocation { get }
-
The departure time (if known/applicable)
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSDate *departureTime;
Swift
var departureTime: Date? { get }
-
The end point of the route
Declaration
Objective-C
@property (readonly, nonatomic) HereSDKDemandLocation *_Nonnull destination;
Swift
var destination: HereSDKDemandLocation { get }
-
Contains the arrival time
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSDate *arrivalTime;
Swift
var arrivalTime: Date? { get }
-
Transport operator name. If relevant/applicable
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *transportOperator;
Swift
var transportOperator: String? { get }
-
Return description of transport mode as NSString
Declaration
Objective-C
- (nonnull NSString *)transportModeDescription;
Swift
func transportModeDescription() -> String