public class OsmMapDataFactory extends java.lang.Object implements MapDataFactory
| Constructor and Description |
|---|
OsmMapDataFactory() |
| Modifier and Type | Method and Description |
|---|---|
Node |
createNode(long id,
int version,
java.lang.Double lat,
java.lang.Double lon,
java.util.Map<java.lang.String,java.lang.String> tags,
de.westnordost.osmapi.changesets.Changeset changeset,
java.time.Instant editedAt)
Create a node from the given data.
|
Relation |
createRelation(long id,
int version,
java.util.List<RelationMember> members,
java.util.Map<java.lang.String,java.lang.String> tags,
de.westnordost.osmapi.changesets.Changeset changeset,
java.time.Instant editedAt)
Create a relation from the given data
|
RelationMember |
createRelationMember(long ref,
java.lang.String role,
Element.Type type)
Create a relation member from the given data
|
Way |
createWay(long id,
int version,
java.util.List<java.lang.Long> nodes,
java.util.Map<java.lang.String,java.lang.String> tags,
de.westnordost.osmapi.changesets.Changeset changeset,
java.time.Instant editedAt)
Create a way from the given data
|
public Node createNode(long id, int version, java.lang.Double lat, java.lang.Double lon, java.util.Map<java.lang.String,java.lang.String> tags, de.westnordost.osmapi.changesets.Changeset changeset, java.time.Instant editedAt)
MapDataFactorycreateNode in interface MapDataFactoryid - id of the nodeversion - version of the nodelat - latitude position of the nodelon - longitude position of the nodetags - tags of the node. May be null.changeset - changeset in which the node was last updated. May be null.editedAt - time at which the node was last updated. May be null.public Way createWay(long id, int version, java.util.List<java.lang.Long> nodes, java.util.Map<java.lang.String,java.lang.String> tags, de.westnordost.osmapi.changesets.Changeset changeset, java.time.Instant editedAt)
MapDataFactorycreateWay in interface MapDataFactoryid - id of the wyversion - version of the waynodes - list of nodes this way consists oftags - tags of the way. May be null.changeset - changeset in which the way was last updated. May be null.editedAt - time at which the way was last updated. May be null.public Relation createRelation(long id, int version, java.util.List<RelationMember> members, java.util.Map<java.lang.String,java.lang.String> tags, de.westnordost.osmapi.changesets.Changeset changeset, java.time.Instant editedAt)
MapDataFactorycreateRelation in interface MapDataFactoryid - id of the relationversion - version of the relationmembers - list of members this relation consists oftags - tags of the relation. May be null.changeset - changeset in which the relation was last updated. May be null.editedAt - time at which the relation was last updated. May be null.public RelationMember createRelationMember(long ref, java.lang.String role, Element.Type type)
MapDataFactorycreateRelationMember in interface MapDataFactoryref - id of the member node, way or relationrole - role of the membertype - element type of the member, either node, way or relation