Class GeoCorridor

java.lang.Object
com.here.sdk.core.GeoCorridor

public final class GeoCorridor extends Object

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 Details

    • polyline

      @NonNull public final List<GeoCoordinates> polyline

      The polyline passing through the middle of the corridor.

    • halfWidthInMeters

      @Nullable public final Integer halfWidthInMeters

      The shortest distance from any point on the polyline to the border of the corridor.

  • Constructor Details

    • GeoCorridor

      public GeoCorridor(@NonNull List<GeoCoordinates> polyline, int halfWidthInMeters)

      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

      public GeoCorridor(@NonNull List<GeoCoordinates> polyline)

      Constructs a GeoCorridor from the provided polyline.

      Parameters:
      polyline -

      The polyline passing through the middle of the corridor.

  • Method Details