I utilise OSRM Server API to obtain a car path between two point and I use REST. I create the link: http://router.project-osrm.org/viaroute?loc=lat1,lon1&loc=lat2,loc2 and it returns me a json file and my question is how I can specify, how I can obtain the fattest path o shortest path? the default is fatest path?Anyone can help me?

asked 22 Oct '14, 17:16

scupetta18's gravatar image

scupetta18
-3111115
accept rate: 0%


OSRM can only optimize for one metric. The publicly available server optimizes for travel time. If you set up your own copy of OSRM you could also optimize for length and thereby find the shortest route.

There are other routing engines that are more flexible, but you usually pay for that flexibility by having slower routing. You might want to check out gosmore/yournavigation, or GraphHopper.

You can also check out the OSRM-specific IRC channel or mailing list mentioned at the project's website.

permanent link

answered 22 Oct '14, 17:20

stephan75's gravatar image

stephan75
12.5k453209
accept rate: 6%

edited 22 Oct '14, 18:04

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
71.3k846451113

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:

×56
×25
×19

question asked: 22 Oct '14, 17:16

question was seen: 3,435 times

last updated: 22 Oct '14, 18:04

powered by OSQA