public class OSMRelation extends Object
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-26 01:01:13 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1155 $, by $Author: averbraeck $,
initial version 31 dec. 2014
Constructor and Description |
---|
OSMRelation(long id)
Construct a new OSMRelation.
|
Modifier and Type | Method and Description |
---|---|
void |
addNode(Long node)
Add one OSMNode id to this OSMRelation.
|
void |
addTag(OSMTag tag)
Add an OSMTag to this OSMRelation.
|
void |
addWay(Long way)
Add one OSMWay id to this OSMRelation.
|
long |
getId() |
List<OSMTag> |
getMatchingTags(String key)
Retrieve the OSMTags of this OSMRelation that have a specified key.
|
List<Long> |
getNodes()
Retrieve the list of OSMNode ids of this OSMRelation.
|
List<OSMTag> |
getTaglist()
Retrieve the list of OSMTags of this OSMRelation.
|
List<Long> |
getWays()
Retrieve the list of OSMWay ids of this OSMRelation.
|
public OSMRelation(long id)
id
- long; the id of the new OSMRelationpublic final long getId()
public final List<OSMTag> getTaglist()
public final void addTag(OSMTag tag)
tag
- OSMTag; the OSMTag that will be addedpublic final List<Long> getWays()
public final void addWay(Long way)
way
- Long; the id of the OSMWay that will be addedpublic final List<Long> getNodes()
public final void addNode(Long node)
node
- Long; the id of the OSMNode that will be addedpublic final List<OSMTag> getMatchingTags(String key)
key
- String; the key of the returned OSMTagsCopyright © 2014–2015 Delft University of Technology. All rights reserved.