I am currently trying to use OSRM's Table service to get the durations of the fastest routes between two points, to be able to build a time matrix using Python and later use it as a parameter in an optimization problem.
My problem is that whenever I run my own server through my jupyter notebook (using five different locations) the 'durations' array returns empty, like in the following example:
str_locations = '-30.59464,-71.19366;-30.60386,-71.21342;-30.58654,-71.18429;-30.60298,-71.20075;-30.58603,-71.19196' r=requests.get('http://localhost:5000/table/v1/driving/'+str_locations+'?sources=0') r.json()['durations']
[0, 0, 0, 0, 0]
I've already checked that those points exist and are connected using the two first points in map.project-osrm.org (here's the link). Plus, whenever I replace the local server with the online demo (http://router.project-osrm.org/) the array is not empty, but that doesn't work with more than 100 coordinates and I need at least 250.
I think it could have something to do with the algorithm that I am using, MLD rather than CH?