<div dir="ltr">Hi Steve<div><br></div><div>Thanks for the message! Yes I found simpleclient.cpp before... but unfortunately I don't know where to start to turn that into a command I can call from the command line to generate a route I'm afraid.</div><div><br></div><div>If it's not too much trouble, would you be able to share any example code or tips on how to turn simpleclient.cpp into something I can call from the command line? I'd really really appreciate any help!</div><div><br></div><div>Thanks</div><div><br></div><div>Kind regards</div><div><br></div><div>Mike</div><div><br></div><div>PS</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 March 2015 at 16:26, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Michael,<br>
<br>
Take a look at this.<br>
<br>
<a href="https://github.com/Project-OSRM/osrm-backend/blob/master/tools/simpleclient.cpp" target="_blank">https://github.com/Project-<u></u>OSRM/osrm-backend/blob/master/<u></u>tools/simpleclient.cpp</a><br>
<br>
I have used it to wrap OSRM into some VRP code. I also recommend using osrm-datastore to host the data, then you can make multiple parallel request to that and we were getting 5-8ms responses to route queries.<br>
<br>
-Steve<div><div class="h5"><br>
<br>
On 3/10/2015 12:14 PM, Michael Leonard wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi<br>
<br>
I'm new to OSRM and the mailing list but have managed to get it all<br>
working well on a 64bit Ubuntu 14.04 server.<br>
<br>
I’m writing looking for help to get OSRM’s routing algorithm working<br>
directly from the command line rather than via http.<br>
<br>
<br>
More info....<br>
<br>
OSRM is already extremely fast when called using |curl <a href="http://localhost" target="_blank">http://localhost</a><br>
…| - however I’m looking to include it an algorithm to generate millions<br>
of realistic driving routes, and am hoping that the underlying C++<br>
routing function might be accessible from the command line directly in<br>
some way. With a command line function that wraps around OSRM’s routing<br>
algorithm, I could call this from within R where I’m writing the rest of<br>
my code.<br>
<br>
My C++ skills are unfortunately at the extreme beginner level, but I<br>
have found where I might start if I were much more advanced: either the<br>
file simpleclient.cpp in the OSRM github repo or the node_osrm.cpp file<br>
in the node-osrm repo which looks like it's similar to simpleclient.cpp.<br>
<br>
Hopefully someone has already crossed this bridge and could I'm hoping<br>
provide some kind of simple command-line wrapper function to these<br>
underlying c++ functions so that I can avoid the http approach which I'm<br>
guessing slows things down.<br>
<br>
<br>
Thanks in advance...<br>
<br>
Thanks so much in advance I really appreciate any help or tips to get<br>
this working<br>
<br>
Love osrm by the way<br>
<br>
<br>
Mike<br>
<br>
<br>
PS....<br>
<br>
I posted this on stackoverflow but found this mailing list and thought I<br>
might have more luck using it.<br>
<br>
<a href="http://stackoverflow.com/questions/28958577/open-source-routing-machine-via-the-commandl" target="_blank">http://stackoverflow.com/<u></u>questions/28958577/open-<u></u>source-routing-machine-via-<u></u>the-commandl</a><br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.<u></u>org/listinfo/osrm-talk</a><br>
<br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.<u></u>org/listinfo/osrm-talk</a><br>
</blockquote></div><br></div>