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

Hi,

Right now, we run osrm-routed for a single region by running something like

/usr/local/bin/osrm-routed -i 127.0.0.1 -p 5000 --algorithm=MLD great-britain-latest.osrm

Now, if we were to add another region (say, the Middle East), do I need to run another instance of osrm-routed and use nginx or something to send the requests to one of these servers? Or is it possible to merge the two results. Googling for this gave me answers like osmosis to convert, but they were working on pbf but the osrm-routed seems to work on .osrm files.

Can you please suggest if the only way is to run multiple osrm-routed servers?

Thanks!

asked 23 Jul '18, 08:21

Raja's gravatar image

Raja
16112
accept rate: 0%


You cannot merge two OSRM files, you have to merge the .osm.pbf before you process them into a routing graph.

The alternative is, as you say, running multiple OSRM daemons. It is possible to hide them behind an Apache or nginx web server and, if the bounding boxes are disjunct like e.g. routing for the US and the Middle East, you could even have the server look at the coordinates and "guess" which backend to send the request to.

permanent link

answered 23 Jul '18, 09:07

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Thanks for the quick response. If we have disjunct areas like US and MiddleEast, would merging the osm.pbf file work, as there are areas in between that are left out. I am going to give it a try anyway.

(23 Jul '18, 09:10) Raja
1

Sure it will work, you won't be able to compute routes between the areas but that's all.

(23 Jul '18, 10:19) Frederik Ramm ♦

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×305
×85

question asked: 23 Jul '18, 08:21

question was seen: 5,481 times

last updated: 23 Jul '18, 10:19

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