Hi,
As I have sometimes to use OSRM, I added other python functions wrapping OSRM (sorry, I also slightly modified the structure of the files/directories, thus allowing simplest call like
from osrm import match instead of from osrm import osrm.match and I also cut lines at 80 character on the function match).
Added function :
nearest (simply return the json returned by osrm),
locate (idem),
simple_viaroute (return the json returned by osrm with optionally the geometry (and those from possibles alternatives routes) decoded in WKT or WKB, without support of driving instruction),
table (return the table requested as a numpy array or as a pandas DataFrame),
table_OD (construct and return a table between different origins and destinations, eventually by by-passing the max-table-size of OSRM).
Tell me if you are interested to merge these changes (with other changes if needed) or if you prefer that I set my own repository with these functions.
Cheers!
Hi, As I have sometimes to use OSRM, I added other python functions wrapping OSRM (sorry, I also slightly modified the structure of the files/directories, thus allowing simplest call like
from osrm import match
instead offrom osrm import osrm.match
and I also cut lines at 80 character on the function match).Added function :
Tell me if you are interested to merge these changes (with other changes if needed) or if you prefer that I set my own repository with these functions. Cheers!