[OSRM-talk] osrm route directly from command line not via http possible?
emailmleonard at gmail.com
Wed Mar 11 14:12:07 UTC 2015
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.
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!
On 10 March 2015 at 16:26, Stephen Woodbridge <woodbri at swoodbridge.com>
> Take a look at this.
> 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.
> On 3/10/2015 12:14 PM, Michael Leonard wrote:
>> I'm new to OSRM and the mailing list but have managed to get it all
>> working well on a 64bit Ubuntu 14.04 server.
>> I’m writing looking for help to get OSRM’s routing algorithm working
>> directly from the command line rather than via http.
>> More info....
>> OSRM is already extremely fast when called using |curl http://localhost
>> …| - however I’m looking to include it an algorithm to generate millions
>> of realistic driving routes, and am hoping that the underlying C++
>> routing function might be accessible from the command line directly in
>> some way. With a command line function that wraps around OSRM’s routing
>> algorithm, I could call this from within R where I’m writing the rest of
>> my code.
>> My C++ skills are unfortunately at the extreme beginner level, but I
>> have found where I might start if I were much more advanced: either the
>> file simpleclient.cpp in the OSRM github repo or the node_osrm.cpp file
>> in the node-osrm repo which looks like it's similar to simpleclient.cpp.
>> Hopefully someone has already crossed this bridge and could I'm hoping
>> provide some kind of simple command-line wrapper function to these
>> underlying c++ functions so that I can avoid the http approach which I'm
>> guessing slows things down.
>> Thanks in advance...
>> Thanks so much in advance I really appreciate any help or tips to get
>> this working
>> Love osrm by the way
>> I posted this on stackoverflow but found this mailing list and thought I
>> might have more luck using it.
>> OSRM-talk mailing list
>> OSRM-talk at openstreetmap.org
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OSRM-talk