GMSRouteLeg Class Reference

GMSRouteLeg Class Reference

Overview

An 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.

Properties

GMSNavigationWaypointdestinationWaypoint
 The destination waypoint associated with this leg of the route.
CLLocationCoordinate2D destinationCoordinate
 The final coordinate in this leg.
GMSPathpath
 The path containing the coordinates which make up this route leg.

Property Documentation

The destination waypoint associated with this leg of the route.

- (CLLocationCoordinate2D) destinationCoordinate [read, assign]

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.

- (GMSPath*) path [read, assign]

The path containing the coordinates which make up this route leg.