Package huskymaps

Class MapGraph.Handler

    • Field Detail

      • allowedHighwayTypes

        private final Set<String> allowedHighwayTypes
      • byId

        private final Map<Long,​org.locationtech.spatial4j.shape.Point> byId
      • byName

        private final Map<String,​List<org.locationtech.spatial4j.shape.Point>> byName
      • id

        private long id
      • validWay

        private boolean validWay
      • location

        private org.locationtech.spatial4j.shape.Point location
      • path

        private Queue<org.locationtech.spatial4j.shape.Point> path
    • Constructor Detail

      • Handler

        Handler​(Set<String> allowedHighwayTypes)
    • Method Detail

      • reset

        private void reset()
        Reset the handler state before processing a new way or node.
      • startElement

        public void startElement​(String uri,
                                 String localName,
                                 String qName,
                                 Attributes attributes)
        Called at the beginning of an element.
        Specified by:
        startElement in interface ContentHandler
        Overrides:
        startElement in class DefaultHandler
        Parameters:
        uri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
        localName - The local name (without prefix), or the empty string if Namespace processing is not being performed.
        qName - The qualified name (with prefix), or the empty string if qualified names are not available. This tells us which element we're looking at.
        attributes - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
        See Also:
        Attributes
      • endElement

        public void endElement​(String uri,
                               String localName,
                               String qName)
        Called at the end of an element.
        Specified by:
        endElement in interface ContentHandler
        Overrides:
        endElement in class DefaultHandler
        Parameters:
        uri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
        localName - The local name (without prefix), or the empty string if Namespace processing is not being performed.
        qName - The qualified name (with prefix), or the empty string if qualified names are not available.