GeoCorridor (API Reference)
Package com.here.sdk.core
Class GeoCorridor
java.lang.Object
com.here.sdk.core.GeoCorridor
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal IntegerThe shortest distance from any point on the polyline to the border of the corridor.final List<GeoCoordinates>The polyline passing through the middle of the corridor. -
Constructor Summary
ConstructorsConstructorDescriptionGeoCorridor(List<GeoCoordinates> polyline) Constructs a GeoCorridor from the provided polyline.GeoCorridor(List<GeoCoordinates> polyline, int halfWidthInMeters) Constructs a GeoCorridor from the provided polyline and half-width in meters. -
Method Summary
-
Field Details
-
polyline
The polyline passing through the middle of the corridor.
-
halfWidthInMeters
The shortest distance from any point on the polyline to the border of the corridor.
-
-
Constructor Details
-
GeoCorridor
Constructs a GeoCorridor from the provided polyline and half-width in meters.
- Parameters:
polyline-The polyline passing through the middle of the corridor.
halfWidthInMeters-The shortest distance from any point on the polyline to the border of the corridor.
-
GeoCorridor
Constructs a GeoCorridor from the provided polyline.
- Parameters:
polyline-The polyline passing through the middle of the corridor.
-
-
Method Details