osrm-routed can only compute one type of route, because the data is 
preprocesed. There is no way to change things like motorway or not at run time. 
The only thing you can do is to run several instances in parallel, but of 
course this will also mean longer preprocessing times.

Then in the front end you change what osrm instance you query, like you said.

Emil

> Den 07/05/2014 kl. 14.35 skrev Anael Lorimier 
> <[email protected]>:
> 
> So, when you points to a different engine, it means that you request to 
> another OSRM server ? Or am I wrong ?
> 
> As far as I can see, you can't set up an OSRM Server that compute both 
> without and with motorway
> 
> 
>> On Wed, May 7, 2014 at 12:33 PM, Schieferdecker, Dennis (ITI) 
>> <[email protected]> wrote:
>> Unfortunately, there is no documentation. But managing engines is pretty
>> straight forward. OSRM-Web just uses an array that contains all data for
>> each engine (see OSRM.config.js) and when you select a different engine
>> (either through the pull-down menu or with an URL parameter), the server
>> URL and labels are updated and the current path is requeried.
>> 
>> Anael Lorimier schrieb:
>> > Thank you for your fast answer.
>> >
>> > I'm not using OSRM-Web, I needed a more specific inplementation so I
>> > created my own leaflet interface to dialog with my OSRM Server.
>> >
>> > I will start reading how OSRM-Web works, but is there any
>> > documentation on how to manage engines ?
>> >
>> > Regards.
>> >
>> >
>> > On Wed, May 7, 2014 at 11:41 AM, Schieferdecker, Dennis (ITI)
>> > <[email protected] <mailto:[email protected]>>
>> > wrote:
>> >
>> >     Hello Anael,
>> >
>> >     yes there is an option. You can specify re=X for the routing engine to
>> >     use. The engines are enumerated as in your OSRM.config.js,
>> >     starting from 0.
>> >
>> >     best regards
>> >     Dennis
>> >
>> >     Anael Lorimier schrieb:
>> >     > Hi there,
>> >     >
>> >     > I was wondering if there is any way to restrict, directly in the
>> >     > requested URL, the route computed.
>> >     >
>> >     > I need to let the user choose if he wants to take the motorway, the
>> >     > toll booth, or other tagged elements.
>> >     >
>> >     > Thank you for your help !
>> >     >
>> >     > --
>> >     > Regards
>> >     >
>> >     > Anael Lorimier
>> >     > Developer Junior
>> >     > XCG Consulting
>> >     >
>> >     > Mobile: (+33)652567117 <tel:%28%2B33%29652567117>
>> >     >
>> >     
>> > ------------------------------------------------------------------------
>> >     >
>> >     > _______________________________________________
>> >     > OSRM-talk mailing list
>> >     > [email protected] <mailto:[email protected]>
>> >     > https://lists.openstreetmap.org/listinfo/osrm-talk
>> >     >
>> >
>> >
>> >     --
>> >     Karlsruher Institut für Technologie (KIT)
>> >     Institut für Theoretische Informatik
>> >
>> >     Dennis Schieferdecker
>> >     Wissenschaftlicher Mitarbeiter
>> >
>> >     Am Fasanengarten 5
>> >     Gebäude 50.34, Zimmer 220
>> >     76131 Karlsruhe
>> >
>> >     Telefon: +49 721 608-46781 <tel:%2B49%20721%20608-46781>
>> >     Fax:     +49 721 608-43088 <tel:%2B49%20721%20608-43088>
>> >     E-Mail:  [email protected]
>> >     <mailto:[email protected]>
>> >
>> >     KIT - Universität des Landes Baden-Württemberg und nationales
>> >     Forschungszentrum in der Helmholtz-Gemeinschaft
>> >
>> >
>> >     _______________________________________________
>> >     OSRM-talk mailing list
>> >     [email protected] <mailto:[email protected]>
>> >     https://lists.openstreetmap.org/listinfo/osrm-talk
>> >
>> >
>> >
>> >
>> > --
>> > Cordialement
>> >
>> > Anael Lorimier
>> > Developer Junior
>> > XCG Consulting
>> >
>> > Mobile: (+33)652567117
>> > ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > OSRM-talk mailing list
>> > [email protected]
>> > https://lists.openstreetmap.org/listinfo/osrm-talk
>> >
>> 
>> 
>> --
>> Karlsruher Institut für Technologie (KIT)
>> Institut für Theoretische Informatik
>> 
>> Dennis Schieferdecker
>> Wissenschaftlicher Mitarbeiter
>> 
>> Am Fasanengarten 5
>> Gebäude 50.34, Zimmer 220
>> 76131 Karlsruhe
>> 
>> Telefon: +49 721 608-46781
>> Fax:     +49 721 608-43088
>> E-Mail:  [email protected]
>> 
>> KIT - Universität des Landes Baden-Württemberg und nationales 
>> Forschungszentrum in der Helmholtz-Gemeinschaft
>> 
>> 
>> _______________________________________________
>> OSRM-talk mailing list
>> [email protected]
>> https://lists.openstreetmap.org/listinfo/osrm-talk
> 
> 
> 
> -- 
> Cordialement
> 
> Anael Lorimier
> Developer Junior
> XCG Consulting
> 
> Mobile: (+33)652567117
> _______________________________________________
> OSRM-talk mailing list
> [email protected]
> https://lists.openstreetmap.org/listinfo/osrm-talk
_______________________________________________
OSRM-talk mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/osrm-talk

Reply via email to