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.

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

    Declaration

    Swift

    var legs: [GMSPlaceLeg]? { get }

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSArray<GMSPlaceLeg *> *legs;
  • 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;
  • Unavailable

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;