Class PolygonLocation
java.lang.Object
com.here.platform.location.referencing.PolygonLocation
- All Implemented Interfaces:
LinearRingHolder<GeoCoordinate>,ReferencingLocation,Serializable,scala.Equals,scala.Product
public class PolygonLocation
extends Object
implements ReferencingLocation, LinearRingHolder<GeoCoordinate>, scala.Product, 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.immutable.Seq<GeoCoordinate> points) -
Method Summary
Modifier and TypeMethodDescriptionstatic <GC> PolygonLocationapply(scala.collection.immutable.Seq<GC> points, GeoCoordinateOperations<GC> evidence$5) static <GC> PolygonLocationcreate(List<GC> points, GeoCoordinateAdapter<GC> adapter) static PolygonLocationfromGeoCoordinates(List<GeoCoordinate> points) Returns the points of the linear ring in order.static LinearRingOperations<PolygonLocation>scala.collection.immutable.Seq<GeoCoordinate>points()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
PolygonLocation
-
PolygonLocation
-
-
Method Details
-
create
-
fromGeoCoordinates
-
apply
public static <GC> PolygonLocation apply(scala.collection.immutable.Seq<GC> points, GeoCoordinateOperations<GC> evidence$5) -
linearRingOperations
-
linearRingAdapter
-
points
-
getPoints
Description copied from interface:LinearRingHolderReturns 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:
getPointsin interfaceLinearRingHolder<GeoCoordinate>
-