# GooglePlaces Framework Reference

# GMSPlaceLeg

    @interface GMSPlaceLeg : NSObject

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


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


  ` The time it takes to finish this leg of the trip.

  #### Declaration

  Swift

      var duration: TimeInterval { get }

  Objective-C

      @property (nonatomic, readonly) NSTimeInterval duration;

- `


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


  ` The distance of this leg of the trip.

  #### Declaration

  Swift

      var distanceMeters: UInt { get }

  Objective-C

      @property (nonatomic, readonly) NSUInteger distanceMeters;

- `


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


  ` Unavailable

  #### Declaration

  Objective-C

      - (instancetype)init NS_UNAVAILABLE;