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 |
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. answered 22 Oct '14, 17:20 stephan75 Frederik Ramm ♦ |