| Modifier and Type | Field and Description |
|---|---|
protected String |
id
The unique ID.
|
protected LocationType |
locType
The loc type.
|
protected StatusCode |
retCode
The ret code.
|
| Constructor and Description |
|---|
InvalidLocation(String id,
LocationType locTypeValue,
StatusCode retCode,
GeoCoordinates geoCoordinates,
SideOfRoad sor,
Orientation or)
Instantiates a new invalid location.
|
InvalidLocation(String idValue,
LocationType locTypeValue,
StatusCode err,
List<Line> loc,
List<List<Line>> subRoutes,
int pOff,
int nOff,
GeoCoordinates gC,
GeoCoordinates aP,
SideOfRoad sor,
Orientation ori)
Instantiates a new decoded location.
|
InvalidLocation(String id,
LocationType locTypeValue,
StatusCode retCode,
List<List<Line>> subRoutes,
GeoCoordinates gC,
SideOfRoad sor,
Orientation or)
Instantiates a new invalid location.
|
InvalidLocation(String id,
LocationType locTypeValue,
StatusCode retCode,
List<List<Line>> subRoutes,
SideOfRoad sor,
Orientation or)
Instantiates a new invalid location.
|
InvalidLocation(String idValue,
StatusCode err,
LocationType locTypeValue)
Instantiates a new invalid location.
|
InvalidLocation(String idValue,
StatusCode err,
LocationType locTypeValue,
List<List<Line>> subRoute)
Instantiates a new invalid location.
|
InvalidLocation(String id,
StatusCode retCode,
LocationType locTypeValue,
SideOfRoad sor,
Orientation or)
Instantiates a new invalid 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 |
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.
|
List<List<Line>> |
getSubRouteList()
Gets the list of sub routes being found by the decoder.
|
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
public InvalidLocation(String idValue, LocationType locTypeValue, StatusCode err, List<Line> loc, List<List<Line>> subRoutes, int pOff, int nOff, GeoCoordinates gC, GeoCoordinates aP, SideOfRoad sor, Orientation ori)
idValue - the id valuelocTypeValue - the loc type valueerr - the errloc - the locsubRoutes - the sub routespOff - the offnOff - the n offgC - the g caP - the a psor - the sorori - the oripublic InvalidLocation(String idValue, StatusCode err, LocationType locTypeValue)
idValue - the id valueerr - the errlocTypeValue - the loc type valuepublic InvalidLocation(String idValue, StatusCode err, LocationType locTypeValue, List<List<Line>> subRoute)
idValue - the id valueerr - the errlocTypeValue - the loc type valuesubRoute - the sub routepublic InvalidLocation(String id, LocationType locTypeValue, StatusCode retCode, GeoCoordinates geoCoordinates, SideOfRoad sor, Orientation or)
id - the idlocTypeValue - the loc type valueretCode - the ret codegeoCoordinates - the geo coordinatessor - the soror - the orpublic InvalidLocation(String id, LocationType locTypeValue, StatusCode retCode, List<List<Line>> subRoutes, GeoCoordinates gC, SideOfRoad sor, Orientation or)
id - the idlocTypeValue - the loc type valueretCode - the ret codesubRoutes - the sub routesgC - the geo coordsor - the soror - the orpublic InvalidLocation(String id, LocationType locTypeValue, StatusCode retCode, List<List<Line>> subRoutes, SideOfRoad sor, Orientation or)
id - the idlocTypeValue - the loc type valueretCode - the ret codesubRoutes - the sub routessor - the soror - the orpublic InvalidLocation(String id, StatusCode retCode, LocationType locTypeValue, SideOfRoad sor, Orientation or)
id - the idretCode - the ret codelocTypeValue - the loc type valuesor - the soror - the orpublic final List<Line> getLocationLines()
getLocationLines in interface Locationpublic final List<List<Line>> getSubRouteList()
public final int getPositiveOffset()
getPositiveOffset in interface Locationpublic final int getNegativeOffset()
getNegativeOffset in interface Locationpublic final GeoCoordinates getPointLocation()
getPointLocation in interface Locationpublic final GeoCoordinates getAccessPoint()
getAccessPoint in interface Locationpublic final boolean hasNegativeOffset()
hasNegativeOffset in interface Locationpublic final boolean hasPositiveOffset()
hasPositiveOffset in interface Locationpublic final Line getPoiLine()
getPoiLine in interface Locationpublic final Orientation getOrientation()
getOrientation in interface Locationpublic final SideOfRoad getSideOfRoad()
getSideOfRoad 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 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.