Isoline (API Reference)
Class Isoline
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 Summary
ConstructorsConstructorDescriptionIsoline(IsolineRangeType rangeType, double rangeValue, MapMatchedCoordinates center, List<GeoPolygon> polygons) Constructs an isoline instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the center point that was used to calculate this isoline.Gets a list of polygons that belong to this isoline.Gets the type of the restriction that was used to calculate this isoline.doubleGets the numerical value of the restriction that was used to calculate this isoline.
-
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
rangeValuelist.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
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
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
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.
-