<div dir="ltr">Yesterday I started some experimental C bindings for the upcoming OSRM v5 release:<br><div><div><div><br><a href="https://github.com/daniel-j-h/libosrmc">https://github.com/daniel-j-h/libosrmc</a><br><br></div><div>Here is the C example:<br></div><div><br><a href="https://github.com/daniel-j-h/libosrmc/blob/b5e437e9fbd3a96ca17d91ac09a1ce5ecf0df6b6/example.c#L6-L62">https://github.com/daniel-j-h/libosrmc/blob/b5e437e9fbd3a96ca17d91ac09a1ce5ecf0df6b6/example.c#L6-L62</a><br></div><div><br></div><div>Today I had a look at how hard it would be to interface with the C bindings through Python's FFI. Turns out not that hard. Here's the same example in Python:<br></div><div><br></div><div><a href="https://github.com/daniel-j-h/libosrmc/blob/master/osrmcpy.py#L115-L135">https://github.com/daniel-j-h/libosrmc/blob/master/osrmcpy.py#L115-L135</a><br><br></div><div>This is still in its early stage, but you can already get distances and durations out of it.<br></div><div><br>I would love to hear from you if this is something you're interested in (and specific use-cases in particular) or if the C++ libosrm library is good enough for all of your use-cases.<br><br></div><div>Cheers,<br></div><div>Daniel J H<br></div></div></div></div>