Author Topic: BRouter profile %parameter% true/false values  (Read 286 times)

Offline poutnikl

  • Padavan of Locus
  • ***
  • Posts: 494
  • Thanked: 46 times
    • View Profile
    • My Brouter Profiles
  • Device: Xiaomi MI A2 (6-128G) / And9-Pie / LocusMap Pro
BRouter profile %parameter% true/false values
« on: September 29, 2019, 23:20:53 »
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
« Last Edit: September 30, 2019, 07:17:20 by poutnikl »
https://github.com/poutnikl/Brouter-profiles/wiki
When a user digs profiles up from the GitHub repositories,
they will be hopefully wrapped in some wiki knowledge....  :-)
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11493
  • Thanked: 332 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: BRouter profile %parameter% true/false values
« Reply #1 on: September 30, 2019, 14:28:09 »
Hello Libor,
done (will be already in next 3.40 version).

Menion
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 699
  • Thanked: 96 times
    • View Profile
  • Device: MotoG
Re: BRouter profile %parameter% true/false values
« Reply #2 on: October 02, 2019, 19:45:35 »
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.
« Last Edit: October 02, 2019, 19:47:24 by john_percy »
 

Offline poutnikl

  • Padavan of Locus
  • ***
  • Posts: 494
  • Thanked: 46 times
    • View Profile
    • My Brouter Profiles
  • Device: Xiaomi MI A2 (6-128G) / And9-Pie / LocusMap Pro
Re: BRouter profile %parameter% true/false values
« Reply #3 on: October 02, 2019, 20:40:06 »
@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
« Last Edit: October 02, 2019, 20:43:22 by poutnikl »
https://github.com/poutnikl/Brouter-profiles/wiki
When a user digs profiles up from the GitHub repositories,
they will be hopefully wrapped in some wiki knowledge....  :-)
 

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 699
  • Thanked: 96 times
    • View Profile
  • Device: MotoG
Re: BRouter profile %parameter% true/false values
« Reply #4 on: October 02, 2019, 21:13:11 »
@poutnikl Thanks, that does the job!

Sent from my moto g(6) plus using Tapatalk

 

Offline poutnikl

  • Padavan of Locus
  • ***
  • Posts: 494
  • Thanked: 46 times
    • View Profile
    • My Brouter Profiles
  • Device: Xiaomi MI A2 (6-128G) / And9-Pie / LocusMap Pro
Re: BRouter profile %parameter% true/false values
« Reply #5 on: October 03, 2019, 08:04:55 »
 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

https://github.com/poutnikl/Brouter-profiles/wiki
When a user digs profiles up from the GitHub repositories,
they will be hopefully wrapped in some wiki knowledge....  :-)