GMSNavigationTimeAndDistance
@interface GMSNavigationTimeAndDistance : NSObject
An immutable class that encapsulates the distance remaining and the ETA for a route.
-
The duration for this route, in seconds.
Declaration
Swift
var durationSeconds: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval durationSeconds;
-
The travel distance of this route, in meters.
Declaration
Swift
var distanceMeters: CLLocationDistance { get }
Objective-C
@property (nonatomic, readonly) CLLocationDistance distanceMeters;