GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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.
-
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSNavigationRouteInfo\u003c/code\u003e is an immutable class providing estimated time of arrival (ETA) and distance data for routes to a waypoint.\u003c/p\u003e\n"],["\u003cp\u003eIt offers information for both the default best route and the shortest route.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etimeAndDistanceForRoutingStrategy:\u003c/code\u003e method returns ETA and distance details for the main route based on the chosen navigation routing strategy.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation Framework Reference\n\nGMSNavigationRouteInfo\n======================\n\n @interface GMSNavigationRouteInfo : NSObject\n\nAn immutable class that encapsulates ETA and distance information for both the default best\nroute, and the shortest route, to a specific waypoint.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMSNavigationRouteInfo(im)init)\n\n `\n ` \n Unavailable \n\n #### Declaration\n\n Objective-C \n\n - (null_unspecified instancetype)init NS_UNAVAILABLE;\n\n- `\n ``\n ``\n `\n\n ### [-timeAndDistanceForRoutingStrategy:](#/c:objc(cs)GMSNavigationRouteInfo(im)timeAndDistanceForRoutingStrategy:)\n\n `\n ` \n Returns the ETA and distance information for the main route if navigating with the given routing\n strategy. \n\n #### Declaration\n\n Swift \n\n func timeAndDistance(for routingStrategy: ../Enums/GMSNavigationRoutingStrategy.html) -\u003e ../Classes/GMSNavigationTimeAndDistance.html?\n\n Objective-C \n\n - (../Classes/GMSNavigationTimeAndDistance.html *_Nullable)timeAndDistanceForRoutingStrategy:\n (../Enums/GMSNavigationRoutingStrategy.html)routingStrategy;"]]