# GoogleNavigation Framework Reference

# 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.
- `


  ### [-init](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationRouteInfo#/c:objc(cs)GMSNavigationRouteInfo(im)init)


  ` Unavailable

  #### Declaration

  Objective-C

      - (null_unspecified instancetype)init NS_UNAVAILABLE;

- `


  ### [-timeAndDistanceForRoutingStrategy:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationRouteInfo#/c:objc(cs)GMSNavigationRouteInfo(im)timeAndDistanceForRoutingStrategy:)


  ` Returns the ETA and distance information for the main route if navigating with the given routing
  strategy.

  #### Declaration

  Swift

      func timeAndDistance(for routingStrategy: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationRoutingStrategy.html) -> https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationTimeAndDistance.html?

  Objective-C

      - (https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationTimeAndDistance.html *_Nullable)timeAndDistanceForRoutingStrategy:
          (https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationRoutingStrategy.html)routingStrategy;