GooglePlaces Framework Reference

GMSPlaceLeg

  @interface 
 GMSPlaceLeg 
 : 
 NSObject 
 

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

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

    Declaration

    Swift

      var 
     duration 
     : 
     TimeInterval 
     { 
     get 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     readonly 
     ) 
     NSTimeInterval 
     duration 
     ; 
     
    
  • The distance of this leg of the trip.

    Declaration

    Swift

      var 
     distanceMeters 
     : 
     UInt 
     { 
     get 
     } 
     
    

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     readonly 
     ) 
     NSUInteger 
     distanceMeters 
     ; 
     
    
  • Unavailable

    Declaration

    Objective-C

      - 
     ( 
     instancetype 
     ) 
     init 
     NS_UNAVAILABLE 
     ; 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: