# GooglePlaces Framework Reference

# GMSPlaceRoutingSummary

    @interface GMSPlaceRoutingSummary : NSObject

The duration and distance from the routing origin to a place in the response, and a second leg
from that place to the destination, if requested.
- `


  ### [legs](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceRoutingSummary#/c:objc(cs)GMSPlaceRoutingSummary(py)legs)


  ` A leg is a single portion of a trip from one location to another.

  #### Declaration

  Swift

      var legs: [https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceLeg.html]? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSArray<https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceLeg.html *> *legs;

- `


  ### [directionsURL](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceRoutingSummary#/c:objc(cs)GMSPlaceRoutingSummary(py)directionsURL)


  ` A link to show directions on Google Maps for the given routing summary.

  #### Declaration

  Swift

      var directionsURL: URL? { get }

  Objective-C

      @property (nonatomic, readonly, nullable) NSURL *directionsURL;

- `


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


  ` Unavailable

  #### Declaration

  Objective-C

      - (instancetype)init NS_UNAVAILABLE;