| 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 |
|---|---|
protected |
GridLocation(String idString,
double lowerLeftLonDeg,
double lowerLeftLatDeg,
double upperRightLonDeg,
double upperRightLatDeg,
int ncols,
int nrows)
Instantiates a new grid area 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.
|
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 GridLocation(String idString, double lowerLeftLonDeg, double lowerLeftLatDeg, double upperRightLonDeg, double upperRightLatDeg, int ncols, int nrows) throws InvalidMapDataException
idString - the id stringlowerLeftLonDeg - the lower left lon deglowerLeftLatDeg - the lower left lat degupperRightLonDeg - the upper right lon degupperRightLatDeg - the upper right lat degncols - the number of columnsnrows - the number of rowsInvalidMapDataException - the invalid map data exceptionpublic final List<GeoCoordinates> getCornerPoints()
getCornerPoints in interface LocationPOLYGON, RECTANGLE, or
GRID, otherwise nullpublic final GeoCoordinates getLowerLeftPoint()
getLowerLeftPoint in interface LocationRECTANGLE, or GRID, otherwise
nullpublic final GeoCoordinates getUpperRightPoint()
getUpperRightPoint in interface LocationRECTANGLE, or GRID, otherwise
nullpublic final int getNumberOfColumns()
getNumberOfColumns in interface Location-1public final int getNumberOfRows()
getNumberOfRows in interface Location-1public 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 List<Line> getLocationLines()
getLocationLines in interface Locationpublic int getPositiveOffset()
getPositiveOffset in interface Locationpublic int getNegativeOffset()
getNegativeOffset in interface Locationpublic Line getPoiLine()
getPoiLine in interface Locationpublic boolean hasPositiveOffset()
hasPositiveOffset in interface Locationpublic boolean hasNegativeOffset()
hasNegativeOffset 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 GeoCoordinates getCenterPoint()
getCenterPoint in interface LocationnullCopyright © 2019 TomTom International B.V.. All rights reserved.