Class OSMWay
- java.lang.Object
-
- fr.univ_artois.lgi2a.similar2logo.examples.transport.osm.OSMWay
-
public class OSMWay extends Object
Way data from the OSM data.- Author:
- Romain Windels, Gildas Morvan
-
-
Constructor Summary
Constructors Constructor Description OSMWay()
Constructor of the OSM way data
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNode(String ref)
Adds a nodevoid
addTag(String k, String v)
Adds a tagList<String>
getNodes()
Map<String,String>
getTags()
boolean
isHighway()
Indicates if the way belongs to a highwayboolean
isRailway()
Indicates if the way belongs to a railwayboolean
isResidentialRoad()
boolean
isSecondaryRoad()
boolean
isTertiaryRoad()
boolean
isTramway()
Indicates if the way belongs to a tramway.
-
-
-
Method Detail
-
addNode
public void addNode(String ref)
Adds a node- Parameters:
ref
- the id of the node
-
addTag
public void addTag(String k, String v)
Adds a tag- Parameters:
k
- the key of the tagv
- the value of the tag
-
isRailway
public boolean isRailway()
Indicates if the way belongs to a railway- Returns:
true
if the way belongs to a railwayfalse
else
-
isHighway
public boolean isHighway()
Indicates if the way belongs to a highway- Returns:
true
if the way belongs to a highwayfalse
else
-
isTramway
public boolean isTramway()
Indicates if the way belongs to a tramway.- Returns:
true
if the way belong to a tramwayfalse
else
-
isResidentialRoad
public boolean isResidentialRoad()
- Returns:
true
if the road is residentialfalse
else
-
isTertiaryRoad
public boolean isTertiaryRoad()
- Returns:
true
if the road is tertiaryfalse
else
-
isSecondaryRoad
public boolean isSecondaryRoad()
- Returns:
true
if the road is secondaryfalse
else
-
-