public class MapDataHistoryDao
extends java.lang.Object
| Constructor and Description |
|---|
MapDataHistoryDao(OsmConnection osm) |
MapDataHistoryDao(OsmConnection osm,
MapDataFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
getNodeHistory(long id,
Handler<Node> handler)
Feeds all versions of the given node to the handler.
|
Node |
getNodeVersion(long id,
int version)
Note that if not logged in, the Changeset for each returned element will be null
|
void |
getRelationHistory(long id,
Handler<Relation> handler)
Feeds all versions of the given relation to the handler.
|
Relation |
getRelationVersion(long id,
int version)
Note that if not logged in, the Changeset for each returned element will be null
|
void |
getWayHistory(long id,
Handler<Way> handler)
Feeds all versions of the given way to the handler.
|
Way |
getWayVersion(long id,
int version)
Note that if not logged in, the Changeset for each returned element will be null
|
public MapDataHistoryDao(OsmConnection osm, MapDataFactory factory)
public MapDataHistoryDao(OsmConnection osm)
public void getNodeHistory(long id,
Handler<Node> handler)
OsmNotFoundException - if the node has not been found.public void getWayHistory(long id,
Handler<Way> handler)
OsmNotFoundException - if the node has not been found.public void getRelationHistory(long id,
Handler<Relation> handler)
OsmNotFoundException - if the node has not been found.public Node getNodeVersion(long id, int version)
public Way getWayVersion(long id, int version)
public Relation getRelationVersion(long id, int version)