BRouter profile %parameter% true/false values

Started by poutnikl, September 29, 2019, 23:20:53

0 Members and 1 Guest are viewing this topic.

poutnikl

Some time ago, there have been implemented syntax

assign parameter = 0/1 # %parameter%

for chosen set of parameters of my embedded car/bike/hiking profiles.

is_wet
avoid_toll
avoid_motorways
avoid_unpaved

It works well even for external BRouter profiles.

The problem is, Locus does not detect the parameter, if it's value is defined

assign parameter = false

instead of

assign parameter = 0

Would it be possible to extent Locus profile parsing analysis to Brouter values true/false, that were implemented later?

Current implementations of the new car profiles by Arndt, based on very good kinematic model, prefers true/false for logical values, even if Boolean type is not implemented yet.

BTW, I recommend these car profiles, instead of mine.

See also https://github.com/abrensch/brouter/issues/197


Sent from my Xiaomi MI A2 / Android 9, via Tapatalk

Menion

Hello Libor,
done (will be already in next 3.40 version).

Menion
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

john_percy

#2
Using the latest car profiles from GitHub and the latest version of Locus I get an error
The built in profiles are fine.
I don't know if this is a Locus error or a Brouter one.
Voluntary and Velocity themes - https://voluntary.nichesite.org
  •  

poutnikl

#3
@john_percy   Try also lookups.dat file from the GitHub, the same folder as profiles. As I remember I had had the same error, until I updated the file some time ago.

Sent from my Xiaomi MI A2 / Android 9, via Tapatalk

john_percy

@poutnikl Thanks, that does the job!

Sent from my moto g(6) plus using Tapatalk

Voluntary and Velocity themes - https://voluntary.nichesite.org
  •  

poutnikl

 I confirm the Locus update for selected BRouter parameters in the release works, i.e.
assign  parameter = false # %parameter%
works as well as with " = 0 "

Sent from my Xiaomi MI A2 / Android 9, via Tapatalk