Class OSMWay

    • Constructor Detail

      • OSMWay

        public OSMWay()
        Constructor of the OSM way data
    • 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 tag
        v - the value of the tag
      • getNodes

        public List<String> getNodes()
        Returns:
        the nodes
      • isRailway

        public boolean isRailway()
        Indicates if the way belongs to a railway
        Returns:
        true if the way belongs to a railway false else
      • isHighway

        public boolean isHighway()
        Indicates if the way belongs to a highway
        Returns:
        true if the way belongs to a highway false else
      • isTramway

        public boolean isTramway()
        Indicates if the way belongs to a tramway.
        Returns:
        true if the way belong to a tramway false else
      • isResidentialRoad

        public boolean isResidentialRoad()
        Returns:
        true if the road is residential false else
      • isTertiaryRoad

        public boolean isTertiaryRoad()
        Returns:
        true if the road is tertiary false else
      • isSecondaryRoad

        public boolean isSecondaryRoad()
        Returns:
        true if the road is secondary false else