Segment
public struct Segment
Represents a line between two RouteCoordinate
.
-
The starting coordinate of the line segment.
Declaration
Swift
public let start: RouteCoordinate
-
The end coordinate of the line segment.
Declaration
Swift
public let end: RouteCoordinate
-
The offset of this segment from the start of the route.
Declaration
Swift
public var routeOffset: Measurement<UnitLength> { get }
-
The length of this segment.
Declaration
Swift
public var length: Measurement<UnitLength> { get }
-
Calculates intermediate point of segment.
Declaration
Swift
public func intermediatePoint(to distanceAlongSegment: Measurement<UnitLength>) -> CLLocationCoordinate2D
Parameters
distanceAlongSegment
A distance along segment.