Class GridLocationReference
java.lang.Object
com.here.platform.location.tpeg2.olr.GridLocationReference
- All Implemented Interfaces:
AbstractLocationReference
,Serializable
,scala.Equals
,scala.Product
,scala.Serializable
public class GridLocationReference
extends Object
implements AbstractLocationReference, scala.Product, scala.Serializable
A
GridLocationReference
refers to a rectangular grid that is not tied
to the road network.
The grid is described based on a rectangle defining the southwesternmost cell which then gets extended to the north and east respectively. The grid coordinates can later be used to refer to the cells of the grid using their column and row numbers, e.g. for local weather reports.
param: baseElement The southwesternmost (lower left) cell of the grid.
param: nrColumns Number of columns (to the east), with nrColumns
> 1.
param: nrRows Number of rows (to the north), with nrRows
> 1.
param: isFuzzyArea The grid is to be interpreted as a rough enclosing rectangle
rather than the exact location.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGridLocationReference
(Rectangle baseElement, int nrColumns, int nrRows, boolean isFuzzyArea) -
Method Summary
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
-
GridLocationReference
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4) -
toString
-
baseElement
-
nrColumns
public int nrColumns() -
nrRows
public int nrRows() -
isFuzzyArea
public boolean isFuzzyArea() -
getBaseElement
-
getNrColumns
public int getNrColumns() -
getNrRows
public int getNrRows()
-