| Modifier and Type | Field and Description |
|---|---|
protected String |
id
The unique ID.
|
protected LocationType |
locType
The loc type.
|
protected StatusCode |
retCode
The ret code.
|
| Modifier | Constructor and Description |
|---|---|
|
LineLocation(LineLocation l)
Instantiates a copy of location l.
|
protected |
LineLocation(String idString,
List<? extends Line> loc,
int pOff,
int nOff)
Instantiates a new location with a unique key and the location as a list
of lines including offset information used to find the precise location
on the location path.
|
| 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 |
getAccessPoint()
Gets the access point.
|
AffectedLines |
getAffectedLines()
Gets the affected lines.
|
GeoCoordinates |
getCenterPoint()
Gets the center point of a circle location.
|
List<GeoCoordinates> |
getCornerPoints()
Gets the points defining the corners of an area location.
|
protected int |
getHashCode()
Gets the hashCode.
|
String |
getID()
Gets the unique ID.
|
List<Line> |
getLocationLines()
Gets the location as a list of lines, if the decoded location is valid.
|
LocationType |
getLocationType()
Gets the location type.
|
GeoCoordinates |
getLowerLeftPoint()
Gets the lower left corner point of a rectangle or grid location.
|
int |
getNegativeOffset()
Gets the remaining negative offset.
|
int |
getNumberOfColumns()
Gets the number of columns of a grid location.
|
int |
getNumberOfRows()
Gets the number of rows of a grid location.
|
Orientation |
getOrientation()
Gets the orientation.
|
Line |
getPoiLine()
Gets the line used to define a point location on.
|
GeoCoordinates |
getPointLocation()
Gets the point location.
|
int |
getPositiveOffset()
Gets the remaining positive offset.
|
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 upper right corner point of a rectangle or grid location.
|
int |
hashCode() |
boolean |
hasNegativeOffset()
Checks for negative offset.
|
boolean |
hasPositiveOffset()
Checks for positive offset.
|
boolean |
isValid()
Checks if the decoded location is valid.
|
String |
toString() |
protected final String id
protected final LocationType locType
protected final StatusCode retCode
protected LineLocation(String idString, List<? extends Line> loc, int pOff, int nOff)
loc - the location as a list of linespOff - the distance between the start of the location and the start
of the precise locationnOff - the distance between the end of the location and the end of
the precise locationidString - the unique IDpublic LineLocation(LineLocation l)
l - the location be copiedpublic final List<Line> getLocationLines()
getLocationLines in interface Locationpublic final int getPositiveOffset()
getPositiveOffset in interface Locationpublic final int getNegativeOffset()
getNegativeOffset in interface Locationpublic final boolean hasPositiveOffset()
hasPositiveOffset in interface Locationpublic final boolean hasNegativeOffset()
hasNegativeOffset in interface Locationpublic final int calculateHashCode()
public final boolean equals(Object obj)
public final int hashCode()
public final String getID()
public final LocationType getLocationType()
getLocationType in interface Locationpublic final StatusCode getReturnCode()
getReturnCode in interface Locationpublic final boolean isValid()
protected final int getHashCode()
public Line getPoiLine()
getPoiLine in interface Locationpublic GeoCoordinates getAccessPoint()
getAccessPoint in interface Locationpublic Orientation getOrientation()
getOrientation in interface Locationpublic GeoCoordinates getPointLocation()
getPointLocation in interface Locationpublic SideOfRoad getSideOfRoad()
getSideOfRoad in interface Locationpublic AffectedLines getAffectedLines()
getAffectedLines in interface Locationpublic List<GeoCoordinates> getCornerPoints()
getCornerPoints in interface LocationPOLYGON, RECTANGLE, or
GRID, otherwise nullpublic GeoCoordinates getLowerLeftPoint()
getLowerLeftPoint in interface LocationRECTANGLE, or GRID, otherwise
nullpublic GeoCoordinates getUpperRightPoint()
getUpperRightPoint in interface LocationRECTANGLE, or GRID, otherwise
nullpublic GeoCoordinates getCenterPoint()
getCenterPoint in interface Locationnullpublic long getRadius()
public int getNumberOfColumns()
getNumberOfColumns in interface Location-1public int getNumberOfRows()
getNumberOfRows in interface Location-1Copyright © 2019 TomTom International B.V.. All rights reserved.