User:Mmd/RelationDemo

From OpenStreetMap Wiki
Jump to navigation Jump to search

Project-OSRM:

DataStructures/ExtractorCallBacks.h:


  #include <boost/lexical_cast.hpp>                         //Zeile hinzugefügt

w.name auf die OSM Id des Weges setzen

       //Save the name of the way if it has one, ref has precedence over name tag.
       if ( 0 < ref.length() )
           w.name = ref;
       else
           if ( 0 < name.length() )
               w.name = name;

       w.name = boost::lexical_cast<std::string>(w.id);      //Zeile hinzugefügt

In gleichem Include ist auch die Verarbeitung für access-Tags zu finden, genauer unterhalb "Is the highway tag listed as usable way?"

Mit scons neu kompilieren

server.ini und speedprofile.ini anpassen. Im Speedprofile wird aktuell nur der erste Eintrag gezogen.

osrm-extract mit aktuellem pbf aufrufen, anschließend osrm-prepare (siehe Ausgabe von osrm-extract für den genauen Aufruf). Für den Server osrm-routed.


Project-OSRM-Web: https://github.com/DennisSchiefer/Project-OSRM-Web