|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenlr.map.sqlite.impl.MapDatabaseImpl
public final class MapDatabaseImpl
Thread safe implementation of the OpenLR MapDatabase interface for use with a TomTom digital
map in SQLite format.
OpenLR is a trade mark of TomTom International B.V.
email: software@openlr.org
| Constructor Summary | |
|---|---|
MapDatabaseImpl(String db)
Creates an instance of this MapDatabase implementation which uses the given SQLite database. |
|
| Method Summary | |
|---|---|
Iterator<? extends openlr.map.Line> |
findLinesCloseByCoordinate(double longitude,
double latitude,
int distance)
|
Iterator<? extends openlr.map.Node> |
findNodesCloseByCoordinate(double longitude,
double latitude,
int distance)
|
Iterator<? extends openlr.map.Line> |
getAllLines()
|
Iterator<? extends openlr.map.Node> |
getAllNodes()
|
openlr.map.Line |
getLine(long id)
|
Rectangle2D.Double |
getMapBoundingBox()
|
openlr.map.Node |
getNode(long id)
|
int |
getNumberOfLines()
|
int |
getNumberOfNodes()
|
boolean |
hasTurnRestrictionOnPath(List<? extends openlr.map.Line> path)
|
boolean |
hasTurnRestrictions()
|
void |
printCacheStats()
Outputs statistics on the caches to the log. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapDatabaseImpl(String db)
MapDatabase implementation which uses the given SQLite database.
db - a SQLite database which holds the network.| Method Detail |
|---|
public Iterator<? extends openlr.map.Line> findLinesCloseByCoordinate(double longitude,
double latitude,
int distance)
findLinesCloseByCoordinate in interface openlr.map.MapDatabase
public Iterator<? extends openlr.map.Node> findNodesCloseByCoordinate(double longitude,
double latitude,
int distance)
findNodesCloseByCoordinate in interface openlr.map.MapDatabasepublic openlr.map.Line getLine(long id)
getLine in interface openlr.map.MapDatabasepublic openlr.map.Node getNode(long id)
getNode in interface openlr.map.MapDatabasepublic boolean hasTurnRestrictionOnPath(List<? extends openlr.map.Line> path)
hasTurnRestrictionOnPath in interface openlr.map.MapDatabasepublic boolean hasTurnRestrictions()
hasTurnRestrictions in interface openlr.map.MapDatabasepublic void printCacheStats()
public String toString()
toString in class Objectpublic Iterator<? extends openlr.map.Line> getAllLines()
getAllLines in interface openlr.map.MapDatabasepublic Iterator<? extends openlr.map.Node> getAllNodes()
getAllNodes in interface openlr.map.MapDatabasepublic Rectangle2D.Double getMapBoundingBox()
getMapBoundingBox in interface openlr.map.MapDatabasepublic int getNumberOfLines()
getNumberOfLines in interface openlr.map.MapDatabasepublic int getNumberOfNodes()
getNumberOfNodes in interface openlr.map.MapDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||