GeoCorridor class

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.

Annotations

Constructors

GeoCorridor(List<GeoCoordinates> polyline, int halfWidthInMeters)
Constructs a GeoCorridor from the provided polyline and half-width in meters.
factory
GeoCorridor.withPolyline(List<GeoCoordinates> polyline)
Constructs a GeoCorridor from the provided polyline.
factory

Properties

halfWidthInMeters → int?
The shortest distance from any point on the polyline to the border of the corridor.
final
hashCode → int
The hash code for this object.
no setter
polyline → List<GeoCoordinates>
The polyline passing through the middle of the corridor.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.