Class Isoline

java.lang.Object
com.here.NativeBase
com.here.sdk.routing.Isoline

public final class Isoline extends NativeBase

Represents an isoline polygon around a center point. Any possible route between the center and any point on the edges of the polygon can be travelled within the given range restriction. The edges of the polygon are not guaranteed to be on the road as all reachable road endpoints are smoothened to fit into one polygon shape. This process can be influenced by setting IsolineOptions.Calculation.maxPoints.

  • Constructor Details

    • Isoline

      public Isoline(@NonNull IsolineRangeType rangeType, double rangeValue, @NonNull MapMatchedCoordinates center, @NonNull List<GeoPolygon> polygons)

      Constructs an isoline instance. This instance is provided by the CalculateIsolineCallback.

      Parameters:
      rangeType -

      Specifies the range type of the provided rangeValue list.

      rangeValue -

      A list of range values. At least one value must be set.

      center -

      The center of the isoline.

      polygons -

      A list of polygons that belong to this isoline. At least one value must be set.

  • Method Details

    • getRangeType

      @NonNull public IsolineRangeType getRangeType()

      Gets the type of the restriction that was used to calculate this isoline.

      Returns:

      Specifies the type of the restriction that was used to calculate this isoline.

    • getRangeValue

      public double getRangeValue()

      Gets the numerical value of the restriction that was used to calculate this isoline.

      Returns:

      Specifies the numerical value of the restriction that was used to calculate this isoline.

    • getCenter

      @NonNull public MapMatchedCoordinates getCenter()

      Gets the center point that was used to calculate this isoline.

      Specifies the center point that was used to calculate this isoline. This includes the original center that was passed to the RoutingEngine.

      Returns:

      The center point that was used to calculate this isoline.

    • getPolygons

      @NonNull public List<GeoPolygon> getPolygons()

      Gets a list of polygons that belong to this isoline. An isoline can consist of multiple polygons. For example, islands that can be reached by a ferry are included. Each island is then represented as a separate polygon. However, in most cases only a single polygon is included.

      Returns:

      A list of polygons that belong to this isoline. An isoline can consist of multiple polygons. For example, islands that can be reached by a ferry are included. Each island is then represented as a separate polygon. However, in most cases only a single polygon is included.