Dynamic BRouter profile configuration
Arndt ( BRouter author ) has recently mentioned a very interesting idea about dynamic config screen for BRouter profile parameters. Locus config screen for the profile would be defined by the profile itself.
Profiles currently use this syntax to assign values to variables
- assign parameter value
The idea is to add a specialized comment ( # is line comment character )
- assign parameter value # %parameter% Locus GUI name|Locus GUI description
I guess Locus should consider only first 3-4 parameters ( AFAIK MapQuest has 4 ), in case the profile author got crazy.
I have recently proactively implemented it for some parameters in my car profiles. But am not aware, how exactly is paramater management implemented, if the idea was already considered, or if such dynamic screens are possible at all.
Anyway, I am posting it on the Helpdesk for the idea not to get lost.
Hi guys,
based on recent changes on the BRouter web site, here is a list of supported parameters by Locus Map 3.45 version (with a short description for what they may be used).
The app does not support all parameters in the configs, because I want to guarantee quality, translation, consistency. Also currently only "boolean"-based parameters are supported.
Parameters:
Hi guys,
based on recent changes on the BRouter web site, here is a list of supported parameters by Locus Map 3.45 version (with a short description for what they may be used).
The app does not support all parameters in the configs, because I want to guarantee quality, translation, consistency. Also currently only "boolean"-based parameters are supported.
Parameters:
Hello Libor,
interesting idea. I can imagine, that such option gives quite a lot of freedom to profile creators and also a lot of options.
Tell me ... how many people here is able to make it's own profiles with such settings? I believe there won't be a lot of them.
I'm little but worried about inconsistency in translation (here won't be any) and about possible mess that this may cause in case of incorrect usage.
Hmm can't say I'm big fan of this, on second side, Locus Map is about "options" and some "freedom" also for users. Have to think about it more when I come back to work...
Hello Libor,
interesting idea. I can imagine, that such option gives quite a lot of freedom to profile creators and also a lot of options.
Tell me ... how many people here is able to make it's own profiles with such settings? I believe there won't be a lot of them.
I'm little but worried about inconsistency in translation (here won't be any) and about possible mess that this may cause in case of incorrect usage.
Hmm can't say I'm big fan of this, on second side, Locus Map is about "options" and some "freedom" also for users. Have to think about it more when I come back to work...
Hi Menion,
The point is, that this feature is not for the profile authors. It is for the users, to get desired options and avoid the profile flood. I doubt the 5 votes suddenly appeared are from the profile writers.
I agree that the localization can be problem, but it could be feature for advanced users.
Take your time for the consideration, the main point was to have the idea registered.
Hi Menion,
The point is, that this feature is not for the profile authors. It is for the users, to get desired options and avoid the profile flood. I doubt the 5 votes suddenly appeared are from the profile writers.
I agree that the localization can be problem, but it could be feature for advanced users.
Take your time for the consideration, the main point was to have the idea registered.
Hi,
Ah so if this idea is mainly for users, should be possible to create some list of possible parameters... like top 10 most useful ... and offer these to profile authors? Currently there are only three and these also hase to be directly as third argument. I see no problem to support ten of them (which will be also correctly localized) and which may be wrote in profiles in similar schema as comment ( as you suggested ). Should this help?
Hi,
Ah so if this idea is mainly for users, should be possible to create some list of possible parameters... like top 10 most useful ... and offer these to profile authors? Currently there are only three and these also hase to be directly as third argument. I see no problem to support ten of them (which will be also correctly localized) and which may be wrote in profiles in similar schema as comment ( as you suggested ). Should this help?
Good day Libor,
so for now, let's stick with some set of predefined parameters that will be supported by Locus.
Format of parameters as you already have in some car profiles will be supported in next version. I see benefit of this system that you may generate single profile file that will works for BRouter as is and for Locus Map as well without any modifications.
In such case, Locus recognize that parameter may be substitued and will offer UI for it.
Currently supported parameters are
avoid_motorways , avoid_toll, is_wet , avoid_unpaved
What I miss is parameter that force using cycle router. Rest is no you or on discussion here. If you find some time and modify hiking and cycle profiles, I'll include them into next Beta version and also extend support for some other parameters if will be interest.
Good day Libor,
so for now, let's stick with some set of predefined parameters that will be supported by Locus.
Format of parameters as you already have in some car profiles will be supported in next version. I see benefit of this system that you may generate single profile file that will works for BRouter as is and for Locus Map as well without any modifications.
In such case, Locus recognize that parameter may be substitued and will offer UI for it.
Currently supported parameters are
avoid_motorways , avoid_toll, is_wet , avoid_unpaved
What I miss is parameter that force using cycle router. Rest is no you or on discussion here. If you find some time and modify hiking and cycle profiles, I'll include them into next Beta version and also extend support for some other parameters if will be interest.
Hi Menion,
I am glad you like it. I will try to select the parameter candidates for bike and hiking profiles later, as it is less obvious what the good set should be like - I have to think it through...., also to let some time for discussion.
I may not understand properly, what exactly you mean by "parameter that force using cycle router." The scope of usage is given by the profile context. Explicit statement about intended usage is defined by BRouter flag parameters
assign validForBikes 1
assign validForCars 0
assign validForFoot 0
These parameters are used in BRouter GUI during old way of mapping profiles on the transportation modes car/bike/foot fast/short, with preselection of all allowed combination. The user than may to narrow the selection.
This definition is constant for given profile, usually is just for a single mode of transportation. and I do not suppose to be exposed in GUI flags.
Well, I can imagine a special profile can be used in range road bike - electrobikes - mopeds.
http://brouter.de/brouter/profile_developers_guide.txt
Hi Menion,
I am glad you like it. I will try to select the parameter candidates for bike and hiking profiles later, as it is less obvious what the good set should be like - I have to think it through...., also to let some time for discussion.
I may not understand properly, what exactly you mean by "parameter that force using cycle router." The scope of usage is given by the profile context. Explicit statement about intended usage is defined by BRouter flag parameters
assign validForBikes 1
assign validForCars 0
assign validForFoot 0
These parameters are used in BRouter GUI during old way of mapping profiles on the transportation modes car/bike/foot fast/short, with preselection of all allowed combination. The user than may to narrow the selection.
This definition is constant for given profile, usually is just for a single mode of transportation. and I do not suppose to be exposed in GUI flags.
Well, I can imagine a special profile can be used in range road bike - electrobikes - mopeds.
http://brouter.de/brouter/profile_developers_guide.txt
Thanks for implementing support for the 4 predefined parameters!
Would it be possible to also read out the default setting of these parameters from the profile and "preselect" them accordingly in the UI? Because at the moment, the parameters seem to be set to not selected ( =0 ) by Locus, regardless of the default setting in the profile.
Thanks for implementing support for the 4 predefined parameters!
Would it be possible to also read out the default setting of these parameters from the profile and "preselect" them accordingly in the UI? Because at the moment, the parameters seem to be set to not selected ( =0 ) by Locus, regardless of the default setting in the profile.
I would love to see one specifically for motor bikes.
We could avoid the big cities, avoid the motorways and take the slower, more secnic route with better curves and hills.
I would love to see one specifically for motor bikes.
We could avoid the big cities, avoid the motorways and take the slower, more secnic route with better curves and hills.
Hi,
We are currently working on a similar feature in BRouter-web (https://github.com/nrenner/brouter-web). Relevant discussions there so far can be found in https://github.com/nrenner/brouter-web/issues/223 and current proof of concept in https://github.com/nrenner/brouter-web/pull/235.
As far as I understood, Locus currently supports a limited set of configurable options, using a syntax such as
assign avoid_motorways 0 # %avoid_motorways%
in the profiles. I am currently trying to extend this behavior (see for instance https://github.com/Phyks/brouter/blob/fc13c5c1594575cc92b912536c7fa9b77bd72d1c/misc/profiles2/trekking.brf#L12) with the following syntax
assign allow_steps = true # %allow_steps% | Set to false to disallow steps | boolean
That is including the Locus "%<PARAMETER>%" special comment and extending it to provide a description and a type (boolean / number / options) for the parameter.
I don't really know much about Locus' internals. Would the current implementation be indeed compatible with our extension? That is, would
assign avoid_motorways = true # %avoid_motorways% | Set to false to stop avoiding motorways | boolean
be compatible out of the box with Locus?
Thanks!
Hi,
We are currently working on a similar feature in BRouter-web (https://github.com/nrenner/brouter-web). Relevant discussions there so far can be found in https://github.com/nrenner/brouter-web/issues/223 and current proof of concept in https://github.com/nrenner/brouter-web/pull/235.
As far as I understood, Locus currently supports a limited set of configurable options, using a syntax such as
assign avoid_motorways 0 # %avoid_motorways%
in the profiles. I am currently trying to extend this behavior (see for instance https://github.com/Phyks/brouter/blob/fc13c5c1594575cc92b912536c7fa9b77bd72d1c/misc/profiles2/trekking.brf#L12) with the following syntax
assign allow_steps = true # %allow_steps% | Set to false to disallow steps | boolean
That is including the Locus "%<PARAMETER>%" special comment and extending it to provide a description and a type (boolean / number / options) for the parameter.
I don't really know much about Locus' internals. Would the current implementation be indeed compatible with our extension? That is, would
assign avoid_motorways = true # %avoid_motorways% | Set to false to stop avoiding motorways | boolean
be compatible out of the box with Locus?
Thanks!
Hi guys,
based on recent changes on the BRouter web site, here is a list of supported parameters by Locus Map 3.45 version (with a short description for what they may be used).
The app does not support all parameters in the configs, because I want to guarantee quality, translation, consistency. Also currently only "boolean"-based parameters are supported.
Parameters:
Hi guys,
based on recent changes on the BRouter web site, here is a list of supported parameters by Locus Map 3.45 version (with a short description for what they may be used).
The app does not support all parameters in the configs, because I want to guarantee quality, translation, consistency. Also currently only "boolean"-based parameters are supported.
Parameters:
Replies have been locked on this page!