Segment
public struct Segment
Represents a line between two RoutePoints.
Important
This is a Public Preview API. It may be changed or removed at any time.-
The starting coordinate of the line segment.
Declaration
Swift
public let start: RoutePoint -
The end coordinate of the line segment.
Declaration
Swift
public let end: RoutePoint -
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>) -> CLLocationCoordinate2DParameters
distanceAlongSegmentA distance along segment.
Segment Structure Reference