CoordinateAlongLine

public struct CoordinateAlongLine : Equatable

Coordinate along line.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Creates an instance of CoordinateAlongLine

    Declaration

    Swift

    public init(coordinate: CLLocationCoordinate2D, distanceAlongLine: Measurement<UnitLength>)

    Parameters

    coordinate

    The polyline coordinate to add to the line to be created.

    distanceAlongLine

    The distance of the coordinate along the line.

Public

  • The polyline coordinate to add to the line to be created.

    Declaration

    Swift

    @EquatableWrapper
    public private(set) var coordinate: CLLocationCoordinate2D { get set }
  • The distance of the coordinate along the line.

    Declaration

    Swift

    public let distanceAlongLine: Measurement<UnitLength>