Class PolygonLocation
java.lang.Object
com.here.platform.location.referencing.PolygonLocation
- All Implemented Interfaces:
LinearRingHolder<GeoCoordinate>
,ReferencingLocation
,Serializable
,scala.Equals
,scala.Product
,scala.Serializable
public class PolygonLocation
extends Object
implements ReferencingLocation, LinearRingHolder<GeoCoordinate>, scala.Product, scala.Serializable
A location surrounded by a sequence of points given as geocoordinates.
The polygon is formed by straight lines between each consecutive pair of geopoints. The first and last geopoints also form a pair. A polygon should be formed by at least three geopoints.
param: points At least three geopoints that form the polygon.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPolygonLocation
(List<GeoCoordinateHolder> points) PolygonLocation
(scala.collection.Seq<GeoCoordinate> points) -
Method Summary
Modifier and TypeMethodDescriptionstatic <GC> PolygonLocation
apply
(scala.collection.Seq<GC> points, GeoCoordinateOperations<GC> evidence$5) static <GC> PolygonLocation
create
(List<GC> points, GeoCoordinateAdapter<GC> adapter) static PolygonLocation
fromGeoCoordinates
(List<GeoCoordinate> points) Returns the points of the linear ring in order.static LinearRingOperations<PolygonLocation>
scala.collection.Seq<GeoCoordinate>
points()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
PolygonLocation
-
PolygonLocation
-
-
Method Details
-
create
-
fromGeoCoordinates
-
apply
public static <GC> PolygonLocation apply(scala.collection.Seq<GC> points, GeoCoordinateOperations<GC> evidence$5) -
linearRingOperations
-
linearRingAdapter
-
points
-
getPoints
Description copied from interface:LinearRingHolder
Returns the points of the linear ring in order.There is no duplication of the last point at the end of the sequence, i.e. for a triangle this method returns a sequence of three points.
- Specified by:
getPoints
in interfaceLinearRingHolder<GeoCoordinate>
-