Re: [OSRM-talk] (no subject)

2017-08-29 Thread Jason Dalton
Thanks Patrick, that looks perfect! So that gets compiled into the runtime, or is it modifiable? Any there any parameters that would be overridable in runtime, for each request? On Tue, Aug 29, 2017 at 4:59 PM, Patrick Niklaus < patrick.nikl...@student.kit.edu> wrote: > Hey Jason, > > our rout

Re: [OSRM-talk] (no subject)

2017-08-29 Thread Jason Dalton
Thanks Daniel. It's just for routing costs. On Tue, Aug 29, 2017 at 4:55 PM, Daniel Patterson wrote: > Hi Jason, > > Depends on what you want to achieve. Travel modes are used for a couple > of things: > > 1) For car routing, we primarily use two modes - normal, and ferry > mode. This a

Re: [OSRM-talk] (no subject)

2017-08-29 Thread Patrick Niklaus
Hey Jason, our routing is fully customizable using profile written in Lua. For an example see here: https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/car.lua You should be able to base your custom profile on the ones that already ship with OSRM. Cheers, Patrick On Tue, Aug 29, 20

Re: [OSRM-talk] (no subject)

2017-08-29 Thread Daniel Patterson
Hi Jason, Depends on what you want to achieve. Travel modes are used for a couple of things: 1) For car routing, we primarily use two modes - normal, and ferry mode. This affects how the routing costs are calculated. 2) For the bike profile, the modes end up in the instructions - some

[OSRM-talk] (no subject)

2017-08-29 Thread Jason Dalton
Hi, I’m working on a custom routing app and need to apply some custom routing rules in OSRM. Is there a mechanism to add a mode of travel? or would I need to ‘reuse’ one of the existing modes? For instance, if I wanted to create routing rules for ATVs, could I create an “ATV" mode of travel in

Re: [OSRM-talk] (no subject)

2015-02-25 Thread Romain NKONGO
Hello again, I didin't manage to handle leaflet-routing-machine in my JS code. I installed the modules leaflet-routing-machine, corslite and polyline with NodeJS (npm install ) but some errors pop up about L.Routing.OSRM.route not being defined. If I manage to use this library, I could start my au

Re: [OSRM-talk] (no subject)

2015-02-17 Thread Romain NKONGO
Another topic for you : in addition of the time criterion, I would like to add a second criterion regarding the cyclability of the ways (an index between 1 and 5, 5 being the best cyclability). Until now, I've been looking in the code for classes that take the speed weight for ways as an attribute

Re: [OSRM-talk] (no subject)

2015-02-12 Thread Romain NKONGO
Ok, so after reading the Leaflet file, it seems to be an appropriate way to send a HTTP request to the server and get the response back as variables I could process in my script. Now I wonder how I could take this interesting piece of code and adapt it to my AngularJS implementation. 2015-02-12 15

Re: [OSRM-talk] (no subject)

2015-02-12 Thread Romain NKONGO
Thanks to all for your suggestions. To Guillaume : I searched about the $http.get function and I wrote this function to test if all goes well (I think I've tried it before) : var getItinerary2=function(){ $http.get(" http://localhost:5000/viaroute?loc=47.3654647,0.6822917&loc=47.390500

Re: [OSRM-talk] (no subject)

2015-02-12 Thread Emil Tin
The OSRM project includes a set of cucumber tests that does a lot of testing of binaries, including preparing data and querying the server. It’s ruby based but maybe it can help you. Look in the folder features/. The various support files that queries osrm are in features/support/ See https://

Re: [OSRM-talk] (no subject)

2015-02-12 Thread Patrick Niklaus
Sorry but I'm a little bit new with Javascript environment. If you have questions about the JavaScript basics http://eloquentjavascript.net/ is a very good (free) introduction book. > I see that the first link you sent me is contained in a full-working project. In order to use the functionalities

Re: [OSRM-talk] (no subject)

2015-02-12 Thread Guillaume Beraudo
Hi, If you want raw json data, then use a normal query like $http.get. Second, you can pass &compression=false to bypass the polyline encoding. Cheers, Guillaume ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/

Re: [OSRM-talk] (no subject)

2015-02-12 Thread Romain NKONGO
Hey Patrick, Thanks for the help. Sorry but I'm a little bit new with Javascript environment. I see that the first link you sent me is contained in a full-working project. In order to use the functionalities of the .js file, do I have to include the whole project in some way, or can I re-use the s

Re: [OSRM-talk] (no subject)

2015-02-12 Thread Patrick Niklaus
Hey Romain, Leaflet-Routing-Machine is a good reference for seeing how to query the OSRM route with javascript from a browser: https://github.com/perliedman/leaflet-routing-machine/blob/master/src/L.Routing.OSRM.js They use corslite [1] to do the json querry. [1] https://github.com/perliedman/l

[OSRM-talk] (no subject)

2015-02-12 Thread Romain NKONGO
Hello to all the OSRM community. I'm a french student who works on a university project, along with my supervisor and uses the open source project OSRM to achieve it. At some point, I have to run some tests (like thousands of tests) to extract some values from the JSON outputs (e.g. the total tim