public class MapDataHistoryApi
extends java.lang.Object
| Constructor and Description |
|---|
MapDataHistoryApi(de.westnordost.osmapi.OsmConnection osm) |
MapDataHistoryApi(de.westnordost.osmapi.OsmConnection osm,
MapDataFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
getNodeHistory(long id,
de.westnordost.osmapi.common.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,
de.westnordost.osmapi.common.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,
de.westnordost.osmapi.common.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 MapDataHistoryApi(de.westnordost.osmapi.OsmConnection osm,
MapDataFactory factory)
public MapDataHistoryApi(de.westnordost.osmapi.OsmConnection osm)
public void getNodeHistory(long id,
de.westnordost.osmapi.common.Handler<Node> handler)
id - the id of the nodehandler - the handler to which to feed the data tode.westnordost.osmapi.common.errors.OsmNotFoundException - if the node has not been found.public void getWayHistory(long id,
de.westnordost.osmapi.common.Handler<Way> handler)
id - the id of the wayhandler - the handler to which to feed the data tode.westnordost.osmapi.common.errors.OsmNotFoundException - if the node has not been found.public void getRelationHistory(long id,
de.westnordost.osmapi.common.Handler<Relation> handler)
id - the id of the relationhandler - the handler to which to feed the data tode.westnordost.osmapi.common.errors.OsmNotFoundException - if the node has not been found.public Node getNodeVersion(long id, int version)
id - the id of the nodeversion - the version of the node to retrievepublic Way getWayVersion(long id, int version)
id - the id of the wayversion - the version of the way to retrievepublic Relation getRelationVersion(long id, int version)
id - the id of the relationversion - the version of the relation to retrieve