public abstract class RawLocationReference extends Object
OpenLR is a trade mark of TomTom International B.V.
email: software@openlr.org
| Modifier and Type | Field and Description |
|---|---|
protected String |
id
The id.
|
protected LocationType |
locType
The loc type.
|
protected StatusCode |
returnCode
The return code.
|
| Constructor and Description |
|---|
RawLocationReference(String idValue,
LocationType lt)
Instantiates a new raw location reference.
|
RawLocationReference(String idValue,
LocationType lt,
StatusCode rc)
Instantiates a new raw location reference.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
calculateHashCode()
Calculate the hash code which can be used to be stored if several hashCode calls
are required.
|
abstract boolean |
equals(Object obj) |
GeoCoordinates |
getCenterPoint()
Gets the center point of a circle location.
|
List<GeoCoordinates> |
getCornerPoints()
Gets the points defining the corners of an area location.
|
GeoCoordinates |
getGeoCoordinates()
Gets the geo coordinates.
|
protected int |
getHashCode()
Gets the hash code.
|
String |
getID()
Gets the unique id stored in the location reference data.
|
List<LocationReferencePoint> |
getLocationReferencePoints()
Gets the location reference points.
|
LocationType |
getLocationType()
Gets the location type.
|
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.
|
Offsets |
getOffsets()
Gets the offset information.
|
Orientation |
getOrientation()
Gets the orientation.
|
long |
getRadius()
Gets the radius (in meters) of a circle location.
|
StatusCode |
getReturnCode()
Gets the return code (only valid as a result of a decoding process).
|
SideOfRoad |
getSideOfRoad()
Gets the side of road.
|
GeoCoordinates |
getUpperRightPoint()
Gets the rightmost corner point of a rectangle or grid location.
|
abstract int |
hashCode() |
boolean |
hasID()
Checks if the location reference data contains an unique id.
|
boolean |
isValid()
Checks if the location reference is valid.
|
protected final LocationType locType
protected final String id
protected final StatusCode returnCode
public RawLocationReference(String idValue, LocationType lt, StatusCode rc)
idValue - the id valuelt - the location typerc - the return codepublic RawLocationReference(String idValue, LocationType lt)
idValue - the id valuelt - the location typepublic final String getID()
public final boolean hasID()
public final LocationType getLocationType()
public final StatusCode getReturnCode()
public final boolean isValid()
public abstract int calculateHashCode()
protected final int getHashCode()
public List<LocationReferencePoint> getLocationReferencePoints()
public Offsets getOffsets()
public GeoCoordinates getGeoCoordinates()
public SideOfRoad getSideOfRoad()
public Orientation getOrientation()
public List<GeoCoordinates> getCornerPoints()
POLYGON, RECTANGLE, or
GRID, otherwise nullpublic GeoCoordinates getLowerLeftPoint()
RECTANGLE, or GRID, otherwise
nullpublic GeoCoordinates getUpperRightPoint()
RECTANGLE, or GRID, otherwise
nullpublic GeoCoordinates getCenterPoint()
nullpublic long getRadius()
-1public int getNumberOfColumns()
-1public int getNumberOfRows()
-1Copyright © 2019 TomTom International B.V.. All rights reserved.