NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum


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.

asked 03 May '17, 02:23

nsuman's gravatar image

accept rate: 0%

edited 03 May '17, 07:27

scai's gravatar image

scai ♦

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.

permanent link

answered 03 May '17, 08:21

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 03 May '17, 02:23

question was seen: 1,678 times

last updated: 03 May '17, 08:21

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum