public abstract class PointLocation extends Object
OpenLR is a trade mark of TomTom International B.V.
email: software@openlr.org
| Modifier and Type | Field and Description |
|---|---|
protected GeoCoordinates |
access
The access.
|
protected String |
id
The unique ID.
|
protected Line |
lineForPoint
The line for point.
|
protected LocationType |
locType
The loc type.
|
protected Orientation |
orientation
The orientation.
|
protected int |
posOff
The positive offset indicates the distance between start point of the
first line and the real start point of the location.
|
protected StatusCode |
retCode
The ret code.
|
protected SideOfRoad |
sideOfRoad
The side of road.
|
| Modifier | Constructor and Description |
|---|---|
|
PointLocation(PointLocation l)
Copy constructor.
|
protected |
PointLocation(String idString,
LocationType lt,
Line l,
int poff,
SideOfRoad s,
Orientation o)
Instantiates a new point location.
|
| 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 |
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.
|
abstract int |
hashCode() |
boolean |
hasNegativeOffset()
Checks for negative offset.
|
boolean |
hasPositiveOffset()
Checks for positive offset.
|
boolean |
isValid()
Checks if the decoded location is valid.
|
protected final int posOff
protected final Line lineForPoint
protected final GeoCoordinates access
protected final SideOfRoad sideOfRoad
protected final Orientation orientation
protected final String id
protected final LocationType locType
protected final StatusCode retCode
protected PointLocation(String idString, LocationType lt, Line l, int poff, SideOfRoad s, Orientation o) throws InvalidMapDataException
idString - the id stringlt - the ltl - the lpoff - the poffs - the so - the oInvalidMapDataException - the invalid map data exceptionpublic PointLocation(PointLocation l)
l - the lpublic final int getPositiveOffset()
getPositiveOffset in interface Locationpublic final Line getPoiLine()
getPoiLine in interface Locationpublic final boolean hasPositiveOffset()
hasPositiveOffset in interface Locationpublic final GeoCoordinates getAccessPoint()
getAccessPoint in interface Locationpublic final Orientation getOrientation()
getOrientation in interface Locationpublic final SideOfRoad getSideOfRoad()
getSideOfRoad in interface Locationpublic 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 abstract int calculateHashCode()
public List<Line> getLocationLines()
getLocationLines in interface Locationpublic int getNegativeOffset()
getNegativeOffset in interface Locationpublic boolean hasNegativeOffset()
hasNegativeOffset in interface Locationpublic GeoCoordinates getPointLocation()
getPointLocation 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.