Stay organized with collections
Save and categorize content based on your preferences.
GMSRouteLeg
@interfaceGMSRouteLeg:NSObject
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-15 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSRouteLeg\u003c/code\u003e represents a single leg of a journey, from the current location to the first destination, or between destinations.\u003c/p\u003e\n"],["\u003cp\u003eEach leg has a destination waypoint, a final coordinate (which may differ from the waypoint), and a path of coordinates.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epath\u003c/code\u003e property provides access to the coordinates that make up the route leg.\u003c/p\u003e\n"],["\u003cp\u003eAlthough 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.\u003c/p\u003e\n"],["\u003cp\u003eAttempting to initialize \u003ccode\u003eGMSRouteLeg\u003c/code\u003e directly using \u003ccode\u003einit\u003c/code\u003e is not allowed.\u003c/p\u003e\n"]]],["GMSRouteLeg is an immutable class representing a single journey leg. It provides access to the `destinationWaypoint`, which is the waypoint associated with this leg. The `destinationCoordinate` property offers the final coordinate of the leg. It contains a `path`, a collection of coordinates that make up the route leg. The `init` method is unavailable, indicating that the class instances are not meant to be manually initialized.\n"],null,["GMSRouteLeg \n\n @interface GMSRouteLeg : NSObject\n\nAn immutable class which represents a single leg of a journey, either from the device's current\nposition to the first destination, or from one destination to a subsequent destination.\n- `\n ``\n ``\n `\n\n [destinationWaypoint](#/c:objc(cs)GMSRouteLeg(py)destinationWaypoint)`\n ` \n The destination waypoint associated with this leg of the route. \n\n Declaration \n Swift \n\n var destinationWaypoint: ../Classes/GMSNavigationWaypoint.html? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Classes/GMSNavigationWaypoint.html *destinationWaypoint;\n\n- `\n ``\n ``\n `\n\n [destinationCoordinate](#/c:objc(cs)GMSRouteLeg(py)destinationCoordinate)`\n ` \n The final coordinate in this leg. Note that this will in general not be the same location as the\n destination waypoint, unless the waypoint is positioned directly on a road. \n\n Declaration \n Swift \n\n var destinationCoordinate: CLLocationCoordinate2D { get }\n\n Objective-C \n\n @property (nonatomic, readonly) CLLocationCoordinate2D destinationCoordinate;\n\n- `\n ``\n ``\n `\n\n [path](#/c:objc(cs)GMSRouteLeg(py)path)`\n ` \n The path containing the coordinates which make up this route leg. \n\n Declaration \n Swift \n\n var path: ../Classes/GMSPath.html? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Classes/GMSPath.html *path;\n\n- `\n ``\n ``\n `\n\n [-init](#/c:objc(cs)GMSRouteLeg(im)init)`\n ` \n Unavailable \n\n Declaration \n Objective-C \n\n - (null_unspecified instancetype)init NS_UNAVAILABLE;"]]