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 ♦
70.7k826421105
accept rate: 24%

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 ♦
Your answer
toggle preview

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:

×252
×53

question asked: 23 Jul '18, 08:21

question was seen: 1,397 times

last updated: 23 Jul '18, 10:19

powered by OSQA