|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MapDatabase
The Interface MapDatabase is the geospatial representation of an area on the earth surface. A map database of a road network holds lines and nodes whereby the lines represent the roads and the nodes represent start and end of lines as well as intersections of lines.
A map database representing a road network might also hold information about turn restrictions. Paths in a network might not be drivable in a certain sequence.
OpenLR is a trade mark of TomTom International B.V.
email: software@openlr.org
| Method Summary | |
|---|---|
Iterator<Line> |
findLinesCloseByCoordinate(double longitude,
double latitude,
int distance)
Returns a set of lines in the road network which are within a distance of distance meter away from the position arguments (latitude, longitude). |
Iterator<Node> |
findNodesCloseByCoordinate(double longitude,
double latitude,
int distance)
Returns a set of nodes in the road network which are within a distance of distance meter away from the position arguments (latitude, longitude). |
Iterator<Line> |
getAllLines()
Returns all lines. |
Iterator<Node> |
getAllNodes()
Returns all nodes. |
Line |
getLine(long id)
Returns the line of the road network with the ID id. |
Rectangle2D.Double |
getMapBoundingBox()
Gets the bounding box of the map. |
Node |
getNode(long id)
Returns the node of the road network with the ID id. |
int |
getNumberOfLines()
Returns the number of lines. |
int |
getNumberOfNodes()
Returns the number of nodes. |
boolean |
hasTurnRestrictionOnPath(List<? extends Line> path)
Checks for turn restrictions on a path. |
boolean |
hasTurnRestrictions()
Checks if the map database also holds information on turn restrictions. |
| Method Detail |
|---|
boolean hasTurnRestrictions()
Line getLine(long id)
id - the id of the requested line
Node getNode(long id)
id - the id of the requested node
Iterator<Node> findNodesCloseByCoordinate(double longitude,
double latitude,
int distance)
latitude - the latitude of the positionlongitude - the longitude of the positiondistance - the radius around the position where the nodes should be located
Iterator<Line> findLinesCloseByCoordinate(double longitude,
double latitude,
int distance)
latitude - the latitude of the positionlongitude - the longitude of the positiondistance - the radius around the position where the lines should be located
boolean hasTurnRestrictionOnPath(List<? extends Line> path)
This methods checks whether at least one turn restriction exists which is completely part of the path in the argument of this method. It returns true if there is a turn restriction on that path.
path - the path to be checked for turn restrictions
Iterator<Node> getAllNodes()
Iterator<Line> getAllLines()
Rectangle2D.Double getMapBoundingBox()
int getNumberOfNodes()
int getNumberOfLines()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||