Hi I just got into OSRM a week ago for a project. My research is in urban planning and I want to be able to change the features of urban settings like "width of the bike lane" or number of pedestrians walking in the certain area of the city. I understand up to downloading the .osm file and setting up the servers but I am not sure how can I integrate these features into my custom map in my machine and run simulations on top of these features like finding the best bike path etc. I basically want to edit the map properties as I want and run my own simulations. It would be helpful if I get any guidance. |
OSRM might not be the best choice for this as it requires recompiling the routing graph for every adjustment you make to the routing parameters - although this will be quick if you're only running it on a city size data set. Of course OSRM doesn't, by default, react to things like "width of the bike lane" or "number of pedestrians milling about in this general area". You will have to use an OSM editor like JOSM to apply some made-up tags to your streets and bike lanes (e.g. select all streets in an area, add tag "pedestrian_density=137"), then save that file (do not upload to OSM!), then configure OSRM via its LUA profile code to react accordingly (e.g. "if pedestrian_density < 100 then assume speed of 5 km per hour, if >= 100 then assume speed of 4 km per hour" or something like that), and then you can compile the routing graph and run your analyses. answered 03 May '17, 08:21 Frederik Ramm ♦ |