Locus Map - forum

Support => Troubles & Questions => Topic started by: Tapio on April 09, 2020, 08:02:46

Title: Locus vs. BRouter, path confusion
Post by: Tapio on April 09, 2020, 08:02:46
Hi,

after there has been path changes to BRouter some while ago, I am still struggling with the profiles2 folders. I have them at 2 places:

a)/storage/emulated/0/brouter/profiles2/
b) /storage/sd_ext/Android/data/btools.routingapp/files/brouter/profiles2

- If I delete a), Locus does not list the contents pf profiles2
- If I delete b), those profiles are listed. But it cannot calculate the route, an orange error message appears (missing data)

So, I need both. Why is this?

It is set to "Locus profiles", because otherwise I cannot manage profiles from within Locus. TBH I do not understand the other option "Brouter profiles", where everything is grayed out. AFAICS I should use the Brouter app then, which seems weird.
Title: Re: Locus vs. BRouter, path confusion
Post by: john_percy on April 09, 2020, 13:51:45
You are correct, the set up is incredibly confusing now, due largely to Android security restrictions.
I also now have two folders of profiles. As I understand it:
- in Locus mode Locus can access its own internal Brouter profiles plus the ones in /brouter/profiles2. It then communicates with Brouter via an api and Brouter then writes a copy of the selected profile into _its_ system data folder (Android/data...) under the name of remote.brf and uses this to calculate a route.
- in Brouter mode, Locus relies entirely on Brouter and the settings in Locus cannot be used and are greyed out. Brouter accesses its own system folder directly and uses either its default profile/mode mapping or the one you can set up yourself in the Brouter app. So, this uses the Android/data... folder. As far as I can see this way of doing things has little to commend it now and is largely historic.

Sent from my moto g(6) plus using Tapatalk
Title: Re: Locus vs. BRouter, path confusion
Post by: Tapio on April 09, 2020, 15:26:06
Thanks for your comprehensive reply. So now what I did was, I deleted all *.brf in /storage/sd_ext/Android/data/btools.routingapp/files/brouter/profiles2

Which now leaves a less confusing state for me.
Title: Re: Locus vs. BRouter, path confusion
Post by: Menion on April 10, 2020, 14:21:27
Using of profiles included in BRouter is older method. The main reason was that some people used the same profiles for OsmAnd and Locus, anyway for me, settings at the top of the "BRouter settings" screen (to use BRouter internal profiles) should be removed.

What I may suggest is to place own profiles in Locus/data/brouter directory  ;). Give it a try, it should work. Then is no need for profiles included in BRouter itself and all is under full control of Locus Map.
Title: Re: Locus vs. BRouter, path confusion
Post by: Tapio on April 10, 2020, 15:15:26
Quote from: menion on April 10, 2020, 14:21:27What I may suggest is to place own profiles in Locus/data/brouter directory  ;). Give it a try, it should work. Then is no need for profiles included in BRouter itself and all is under full control of Locus Map.
It works and is definitely better now. I put some hand picked brf files there. You could please add data/brouter to the backup, as you know brfs are valuable for some of us, and they are small.
Title: Re: Locus vs. BRouter, path confusion
Post by: poutnikl on April 10, 2020, 15:29:05
For completeness, here are my bicycle and foot profiles, locally generated, named and packed in Android by Linux/bash script sedbatch (my GitHub repo) in termux Linux console.

Skilled users can do it any time to fetch up-to-date profiles, as the script is able to pull profile templates master and develop branches from my GitHub repository.

http://cloud.tapatalk.com/s/5e9072dd6f74e/BR-Bike-Profiles-develop-locus.zip (http://cloud.tapatalk.com/s/5e9072dd6f74e/BR-Bike-Profiles-develop-locus.zip)


http://cloud.tapatalk.com/s/5e9072e94e6a4/BR-Bike-Profiles-master-locus.zip (http://cloud.tapatalk.com/s/5e9072e94e6a4/BR-Bike-Profiles-master-locus.zip)


http://cloud.tapatalk.com/s/5e907319904c2/BR-Foot-Profiles-master-locus.zip (http://cloud.tapatalk.com/s/5e907319904c2/BR-Foot-Profiles-master-locus.zip)

Sent from my Xiaomi MI A2 / Android 10, via Tapatalk
Title: Re: Locus vs. BRouter, path confusion
Post by: Andrew Heard on April 13, 2020, 00:00:18
Quote from: menion on April 10, 2020, 14:21:27
What I may suggest is to place own profiles in Locus/data/brouter directory  ;). Give it a try, it should work. Then is no need for profiles included in BRouter itself and all is under full control of Locus Map.
@menion - 3.44.3.3 BETA - I moved all brouter/profiles2/*.brf files to Locus/data/brouter but now in Locus settings > Navigation > data source > BRouter profiles - only 5 default (fast, short etc.) profiles are displayed, all disabled. I then moved all *.BRF back to brouter/profiles2 & same issue. I then checked with 3.44.3 PRO - all my BRouter profiles are recognised & can edit them.
Title: Re: Locus vs. BRouter, path confusion
Post by: Menion on April 13, 2020, 00:29:00
Don't you only have enabled BRouter option (toggle button) at the top of BRouter settings dialog?

Sent from my Pixel 2 using Tapatalk

Title: Re: Locus vs. BRouter, path confusion
Post by: Andrew Heard on April 13, 2020, 01:40:18
yes, I tried both toggle button positions
Title: Re: Locus vs. BRouter, path confusion
Post by: Tapio on April 14, 2020, 09:14:49
Quote from: Andrew Heard on April 13, 2020, 01:40:18yes, I tried both toggle button positions
I currently have the Alpha installed, Locus\data\brouter method works there as well as in stable.
EDIT: OK, also works in Beta.

@Andrew, are you sure you just didn't put them into the BETAs data-folder? I hate to ask ;-)
Title: Re: Locus vs. BRouter, path confusion
Post by: Andrew Heard on April 15, 2020, 03:41:39
Quote from: tapio on April 14, 2020, 09:14:49
I currently have the Alpha installed, Locus\data\brouter method works there as well as in stable.
EDIT: OK, also works in Beta.

@Andrew, are you sure you just didn't put them into the BETAs data-folder? I hate to ask ;-)
thanks for the reply @tapio & thanks for asking - BETAs data-folder? Same folder as PRO?

Instead of Locus/data/brouter I have now moved all brouter/profiles2/*.brf files to Locus/data/brouter/profiles2 & that seems to have worked. Is that the intention?
Title: Re: Locus vs. BRouter, path confusion
Post by: john_percy on April 15, 2020, 09:39:59
I have my *.brf files in Locus/data/brouter/ and they work there for both Pro and beta.

Sent from my moto g(6) plus using Tapatalk

Title: Re: Locus vs. BRouter, path confusion
Post by: poutnikl on April 15, 2020, 09:47:29
I have in Android 10 the BRouter folder in the root of internal storage, same as the Locus one. I have never noticed any access problem to Brouter profiles in Brouter/profiles2, especially with BRouter API10 accessing Locus points in the opposite direction.

Be aware Android uses a Linux file system with case sensitive names, what is a frequent issue if a Windows user writes names carelessly.

Sent from my Xiaomi MI A2 / Android 10, via Tapatalk
Title: Re: Locus vs. BRouter, path confusion
Post by: Andrew Heard on April 15, 2020, 12:07:56
Quote from: john_percy on April 15, 2020, 09:39:59
I have my *.brf files in Locus/data/brouter/ and they work there for both Pro and beta.

Sent from my moto g(6) plus using Tapatalk
I can't explain it. Weird.