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, distanceAlongLineMeters: Double)

    Parameters

    coordinate

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

    distanceAlongLineMeters

    The distance of the coordinate along the line, expressed in meters.

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, expressed in meters.

    Declaration

    Swift

    public let distanceAlongLineMeters: Double