GeoCorridor
public struct GeoCorridor : Hashable
A geographical area that wraps around a geographical polyline with a given distance. The corridor has round edges at the endpoints of the polyline. The distance from any point of the polyline to the closest border of the corridor is always the same.
-
The polyline passing through the middle of the corridor.
Declaration
Swift
public let polyline: [GeoCoordinates] -
The shortest distance from any point on the polyline to the border of the corridor.
Declaration
Swift
public let halfWidthInMeters: Int32? -
Constructs a GeoCorridor from the provided polyline and half-width in meters.
Declaration
Swift
public init(polyline: [GeoCoordinates], halfWidthInMeters: Int32)Parameters
polylineThe polyline passing through the middle of the corridor.
halfWidthInMetersThe shortest distance from any point on the polyline to the border of the corridor.
-
Constructs a GeoCorridor from the provided polyline.
Declaration
Swift
public init(polyline: [GeoCoordinates])Parameters
polylineThe polyline passing through the middle of the corridor.