GMSNavigationRouteInfo
@interface GMSNavigationRouteInfo : NSObject
An immutable class that encapsulates ETA and distance information for both the default best route, and the shortest route, to a specific waypoint.
-
Unavailable
Declaration
Objective-C
- (null_unspecified instancetype)init NS_UNAVAILABLE;
-
Returns the ETA and distance information for the main route if navigating with the given routing strategy.
Declaration
Swift
func timeAndDistance(for routingStrategy: GMSNavigationRoutingStrategy) -> GMSNavigationTimeAndDistance?
Objective-C
- (GMSNavigationTimeAndDistance *_Nullable)timeAndDistanceForRoutingStrategy: (GMSNavigationRoutingStrategy)routingStrategy;