AI-generated Key Takeaways
- 
          GMSRouteLegrepresents a single leg of a journey, from the current location to the first destination, or between destinations.
- 
          Each leg has a destination waypoint, a final coordinate (which may differ from the waypoint), and a path of coordinates. 
- 
          The pathproperty provides access to the coordinates that make up the route leg.
- 
          Although a destination waypoint is associated with the leg, the final coordinate might not be the same if the waypoint isn't directly on a road. 
- 
          Attempting to initialize GMSRouteLegdirectly usinginitis not allowed.
GMSRouteLeg
@interface GMSRouteLeg : NSObjectAn immutable class which represents a single leg of a journey, either from the device’s current position to the first destination, or from one destination to a subsequent destination.
- 
                  
                  The destination waypoint associated with this leg of the route. DeclarationSwift var destinationWaypoint: GMSNavigationWaypoint? { get }Objective-C @property (nonatomic, readonly, nullable) GMSNavigationWaypoint *destinationWaypoint;
- 
                  
                  The final coordinate in this leg. Note that this will in general not be the same location as the destination waypoint, unless the waypoint is positioned directly on a road. DeclarationSwift var destinationCoordinate: CLLocationCoordinate2D { get }Objective-C @property (nonatomic, readonly) CLLocationCoordinate2D destinationCoordinate;
- 
                  
                  Unavailable DeclarationObjective-C - (null_unspecified instancetype)init NS_UNAVAILABLE;