public class RawGridLocRef extends RawLocationReference
OpenLR is a trade mark of TomTom International B.V.
email: software@openlr.org
id, locType, returnCode| Constructor and Description |
|---|
RawGridLocRef(String idValue,
GeoCoordinates ll,
GeoCoordinates ur,
int cols,
int rows)
Instantiates a new raw encoder location reference for a grid location.
|
| Modifier and Type | Method and Description |
|---|---|
int |
calculateHashCode()
{ Calculate the hash code which can be used to be stored if several hashCode calls
are required.
|
boolean |
equals(Object obj)
{
|
GeoCoordinates |
getLowerLeftPoint()
Gets the leftmost corner point of a rectangle or grid location.
|
int |
getNumberOfColumns()
Gets the number of columns of a grid location.
|
int |
getNumberOfRows()
Gets the number of rows of a grid location.
|
GeoCoordinates |
getUpperRightPoint()
Gets the rightmost corner point of a rectangle or grid location.
|
int |
hashCode() |
String |
toString() |
getCenterPoint, getCornerPoints, getGeoCoordinates, getHashCode, getID, getLocationReferencePoints, getLocationType, getOffsets, getOrientation, getRadius, getReturnCode, getSideOfRoad, hasID, isValidpublic RawGridLocRef(String idValue, GeoCoordinates ll, GeoCoordinates ur, int cols, int rows)
idValue - the idll - the llur - the urcols - the colsrows - the rowspublic final GeoCoordinates getLowerLeftPoint()
getLowerLeftPoint in class RawLocationReferenceRECTANGLE, or GRID, otherwise
nullpublic final GeoCoordinates getUpperRightPoint()
getUpperRightPoint in class RawLocationReferenceRECTANGLE, or GRID, otherwise
nullpublic final int getNumberOfColumns()
getNumberOfColumns in class RawLocationReference-1public final int getNumberOfRows()
getNumberOfRows in class RawLocationReference-1public final int calculateHashCode()
calculateHashCode in class RawLocationReferencepublic final boolean equals(Object obj)
equals in class RawLocationReferencepublic final int hashCode()
hashCode in class RawLocationReferenceCopyright © 2019 TomTom International B.V.. All rights reserved.