[OSRM-talk] Using OSRM linked into other code?

2014-11-07 Thread Stephen Woodbridge
Hi, I seem to remember a while back that there was a discussion about the possibility to embed the OSRM routing engine at the code level rather than doing HTTP requests to a server. I now find myself in a position that this would be desirable to do. I have a small coverage area like a city,

Re: [OSRM-talk] Using OSRM linked into other code?

2014-11-07 Thread Stephen Woodbridge
Per, Thank your for responding. We are also doing the HTTP requests, but the performance is killing us. So just a quick update on what I have found out so far: time GET 'http://localhost:5000/viaroute?...' takes about 500 ms on my system. time ./simpleclient --sharedmemory takes about 44

Re: [OSRM-talk] Using OSRM linked into other code?

2014-11-07 Thread John Firebaugh
Hi Steve, Recent versions of osrm-backend build a library which you can link against. See https://github.com/Project-OSRM/node-osrm/ for an example. cheers, John On Fri, Nov 7, 2014 at 7:13 AM, Stephen Woodbridge wood...@swoodbridge.com wrote: Hi, I seem to remember a while back that there

Re: [OSRM-talk] Using OSRM linked into other code?

2014-11-07 Thread Antonio Moratilla OcaƱa
Hello A year ago I was in the same situation, but using Java. The found the problem was not about OSRM server but connection overhead in my own program. Creating a new http connection for each request was simply not an option: i could manage to get about 20 request at max. I tried to use