@Override
    public void endElement(String uri, String localName, String qName) throws SAXException {
        switch(OSMEnum.valueOf(qName.toUpperCase())){
            case WAY :
                if (wayElement) {
                    if (quarterElement){
                    }
                    if (routeElement) {
                        for (Noeud nodeTmp : wayTemp.noeuds)
                            correctNodeTmp.add(nodeTmp.id);

                        if (inverseElement) {
                            ArrayList<Noeud> reverseNodes = new ArrayList<Noeud>();
                            for (int k = wayTemp.noeuds.size() - 1; k >= 0; k--)
                                reverseNodes.add(wayTemp.noeuds.get(k));

                            wayTemp.noeuds = reverseNodes;
                            inverseElement = false;
                        }

                        map.addRoute(wayTemp);
                        routeElement = false;
                    }
                }

                wayElement = false;
                break;
            case NODE :
                nodeElement = false;
                break;
        } 
    }