Locus Map - forum

Development => Other features => Navigation & Guidance => Topic started by: gynta on May 29, 2015, 00:39:26

Title: Offline navigation - BRouter v1.2+
Post by: gynta on May 29, 2015, 00:39:26
"BRouter: Let's get serious about bike routing"
Discussions, Problems & Questions: HERE!
Title: Re: Offline navigation - BRouter v1.2+
Post by: Sandijs on June 25, 2015, 21:13:05
Hallo!
First - i really enjoy using Locus for my motorcycle rides. Locus is the only reason i'm not using way overpriced Garmin units :)

My problem:
- i created track, imported it in Locus, than i follow the track using navigation (navigation data source - Brouter);
- if i detour and later return to track, navigation is always guiding to the latest missed point :( Is there an option to skip the point, so i can navigate to next poing?
Title: Re: Offline navigation - BRouter v1.2+
Post by: silvermapper on July 26, 2015, 20:18:12
I shouldn't write this, but I had no success in getting BRouter to work (it suggests I am totally useless!) so I can't compare.  However, as others have written, I had found the process of choosing grid squares a chore.
Title: Re: Offline navigation - BRouter v1.2+
Post by: gynta on July 26, 2015, 20:43:21
hm, but also with GraphHopper you need the routing files.
If you want, we can start a new challenge :D 
because to helping you - maybe also helps other guys.
Title: Re: Offline navigation - BRouter v1.2+
Post by: silvermapper on July 26, 2015, 20:59:47
It's the least I should do after your persistent help today.
Title: Re: Offline navigation - BRouter v1.2+
Post by: gynta on July 26, 2015, 22:28:07


Hmm i guess that's it :D
because you know next steps:
choose BRouter as your routing service...
Title: Re: Offline navigation - BRouter v1.2+
Post by: silvermapper on July 27, 2015, 20:30:19
gynta
I list below the steps I took based upon your earlier post:
Download brouter_1_2.zip (current revision, 4.4.2015) from http://brouter.de/brouter/revisions.html to C:\Users\(name)\Downloads\BRouter
Extract the files
Copy BRouter.apk alone from C:\Users\(name)\Downloads\BRouter\brouter_1_2 to storage\emulated\0 on the 'phone
Locate the .apk file on the 'phone and install
Close BRouter
Download the routing files (eg 5 files for uk) from the addresses below to C:\Users\(name)\Downloads\BRouter :
http://brouter.de/brouter/segments3/W10_N55.rd5
http://brouter.de/brouter/segments3/W5_N55.rd5
http://brouter.de/brouter/segments3/W10_N50.rd5
http://brouter.de/brouter/segments3/W5_N50.rd5
http://brouter.de/brouter/segments3/E0_N50.rd5
Copy all downloaded *.rd5 files to storage\emulated\0\brouter\segments3
Go to Main menu>Settings>Navigation in Locus Map.  Tap 'Navigation data source' and select 'BRouter'.

Below are my observations:
The link you provided to download BRouter prompted my browser to throw up a warning, 'Warning: Unsafe Website Blocked!'.  http://brouter.de/brouter/revisions.html throws up a warning, too, 'brouter_1_2.zip is not commonly downloaded and could be dangerous."  I feel this could be offputting to some users.
Clicking the icon on the right-hand side of 'Navigation data source' produces an orange window, "Service 'BRouter' has no settings".  GraphHopper displays the 'england.osm' file.
The screenshot of the navigation page attached shows BRouter is employed.
Selecting the same destination as I used for GraphHopper yesterday, BRouter navigates along the road rather than prioritising footpaths.  GraphHopper selected the footpaths.
Storage\emulated\0\brouter\segments3\carsubset is empty.
The BRouter app icon displays 'Select Main Action' and 'BRouter App' displays five routing profiles when tapped.
A final point: there is delayed action in the appearance of folders both on the 'phone and in Windows Explorer that could cause bewilderment to some users.

I thank you again for assisting me.
Title: Re: Offline navigation - BRouter v1.2+
Post by: gynta on July 27, 2015, 21:06:49
Quote from: silvermapper on July 27, 2015, 20:30:19
warning, 'Warning: Unsafe Website Blocked!'... I feel this could be offputting to some users.
This is the first time i read about any browser problems but will forward this to Arndt (the Author of BRouter/Site)

Quote from: silvermapper on July 27, 2015, 20:30:19
Clicking the icon on the right-hand side of 'Navigation data source' produces an orange window, "Service 'BRouter' has no settings".  GraphHopper displays the 'england.osm' file.
Yes that's ok BRouter has no settings (not to set from Locus)

Quote from: silvermapper on July 27, 2015, 20:30:19
The screenshot of the navigation page attached shows BRouter is employed.
looks good

Quote from: silvermapper on July 27, 2015, 20:30:19
Selecting the same destination as I used for GraphHopper yesterday, BRouter navigates along the road rather than prioritising footpaths.
And here - I need your coords to simulate...

Quote from: silvermapper on July 27, 2015, 20:30:19
Storage\emulated\0\brouter\segments3\carsubset is empty.
Yep, there are optimized segments for car routing available on the brouter server too - but this for later...

Quote from: silvermapper on July 27, 2015, 20:30:19
The BRouter app icon displays 'Select Main Action' and 'BRouter App' displays five routing profiles when tapped.
? where... hmm

Quote from: silvermapper on July 27, 2015, 20:30:19
...there is delayed action in the appearance of folders both on the 'phone and in Windows Exploere
huhh?
Sorry, maybe too much words for me :D
Have to read it twice, i think...
..no - no idea what u mean ;)
Title: Re: Offline navigation - BRouter v1.2+
Post by: silvermapper on July 27, 2015, 22:40:57
1. Selecting the same destination as I used for GraphHopper yesterday, BRouter navigates along the road rather than prioritising footpaths.
Start = 51.50139,-0.924225
Destination = 51.517089,-0.981667

2. The BRouter app icon displays 'Select Main Action' and 'BRouter App' displays five routing profiles when tapped.
This simply is confirmation of what happens when the BRouter icon in the Apps screen is tapped, nothing more.

3. ...there is delayed action in the appearance of folders both on the 'phone and in Windows Explorer.
An example: I have installed BRouter on my 'phone.  A BRouter folder and subfolders are created.  Next, I wish to copy the *.rd5 files from my PC.  The BRouter folders are not visible in Windows Explorer and take a long time to appear.  I do not know what controls this delay.  The same BRouter folders can be seen in ES File Explorer immediately.  I should not have written this.  It is personal to my setup, perhaps.  But it can be disconcerting.
Title: Re: Offline navigation - BRouter v1.2+
Post by: silvermapper on July 27, 2015, 22:53:44
gynta
Regarding item 1: something is not correct.  In the instance I gave, the fast car time is 1h:19m, the same as by foot!   GraphHopper's time is 07m:09s, which is correct.  I have tried another example and the error is the same.  I am a jinx!
Title: Re: Offline navigation - BRouter v1.2+
Post by: gynta on July 28, 2015, 00:18:30
brouter use rules from his profiles.
please replace your files inside brouter with attached data.
if it works - we talking about...

its better - but is it ok?
(http://s7.postimg.org/62b7r1omv/2015_07_28_001037.jpg) (http://postimg.org/image/62b7r1omv/)
red=GH blue =BR
Title: Re: Offline navigation - BRouter v1.2+
Post by: silvermapper on July 28, 2015, 09:26:18
I emptied Computer\XT1039\Internal storage\brouter\profiles2 of the five modes .brf files and substituted Locus_brouter.rar in their place.  A message 'Unknown problem' displays when trying to navigate either by foot or car.  I removed next the lookups.dat file, not knowing whether this should affect anything; the result was the same.  I have powered off and restarted the 'phone on two occasions.  It makes no difference.

So far as the red and blue routes are concerned: GraphHopper is better in the literal sense of 'Foot' because it appears to select a road  only when there is no alternative, which I like for walking, and that has been my experience when testing previous navigations.  BRouter appears not to concern itself with distance to start with but travels the final section by road.  Presented with those two choices to walk, I prefer GraphHopper.
Title: Re: Offline navigation - BRouter v1.2+
Post by: gynta on July 28, 2015, 10:01:47
Unpack the rar - sorry, i wrote not precise enough.
Title: Re: Offline navigation - BRouter v1.2+
Post by: silvermapper on July 28, 2015, 15:13:20
gynta
I want so much for this to work for your sake.
I unpacked the .rar file you provided and placed the resulting eight .brf files into Computer\XT1039\Internal storage\brouter\profiles2.  Regrettably, it had no effect whatsoever: both car and foot still travel the road and take 1h:19m.  I did not replace the content of the new modes folder, which had foot_fast_rawtrack.dat only and no motorcar_fast_rawtrack.dat as in BRouter.
Title: Re: Offline navigation - BRouter v1.2+
Post by: gynta on July 28, 2015, 16:17:23
QuoteI did not replace the content of the new modes folder,
plz replace your ../brouter/modules/serviceconfig.dat from above attached rar file/modules/

first we have  to start with correct profile for "foot"
all other things.... (car, 1h:19m,) ..later!
Title: Re: Offline navigation - BRouter v1.2+
Post by: silvermapper on July 28, 2015, 16:42:34
Well done!
Copying both serviceconfig.dat and foot_fast_rawtrack.dat to Computer\XT1039\Internal storage\brouter\modes in place of what was there previously, gives me the exact same blue route as you provided this morning.
Title: Re: Offline navigation - BRouter v1.2+
Post by: gynta on July 28, 2015, 17:02:52
As you wrote - well done.

Now you should try both offline sevices (GH and BR) for some trips/days.
Often GH has better "ideas" to route - sometimes u like BR routes.

And sorry for my word now:
I don't care about car navigation.
because my navtec onboard system works very good
and for me, Locus is a outdoor tool.

I reached my targed for now - BRouter is working for you
hf
Title: Re: Offline navigation - BRouter v1.2+
Post by: silvermapper on July 28, 2015, 17:34:49
gynta
Goodbye and thankyou!  This exercise has taught me so much.
Bob
Title: Re: Offline navigation - BRouter v1.2+
Post by: john_percy on October 18, 2015, 22:45:45
BRouter 1.3 has been announced in the German language version of this forum: http://forum.locusmap.eu/index.php?topic=4064.msg39621#msg39621
Quote from: Arndt (translated)I've uploaded the version 1.3 (only distribution-Zip, not on Google Play yet):

http://brouter.de/brouter/revisions.html [in English]

This is a purely technological update, it makes the data files considerably smaller, making the carsubset files unnecessary and improves memory footprint, thus preventing out-of-memory error.

This is only intended as an interim release, and version 1.4 will (hopefully) bring new functionally (voice hints?) and reappear on Google Play. But I will now first experience problems with the file format update in "friendly fire"

Gruss, Arndt

The data files are considerably smaller, with no need for a carsubset. They are stored in a directory "segments4" which is automatically created with a file "storageconfig.txt" that includes a value for "secondary_segment_dir" pointing to the old directory (segments3), so that is also found and the old data can be used. If you have customised the file locations, you will need to edit the new storageconfig.txt after running BRouter once.

My advice is to use the BRouter download manager to download new data files and then delete the old ones in segments3. Data files can be updated from the BRouter download manager when a new version is available.

It's working for me.

PS. I've made use of walking and cycling profiles from https://github.com/poutnikl/Brouter-profiles/wiki/Brouter-profiles-collection to select the profiles most close to my preferences and altered serviceconfig.dat accordingly.
Title: Re: Offline navigation - BRouter v1.2+
Post by: poutnikl on October 19, 2015, 17:51:07
Thanks for my profiles finding their customers...   :)
Title: Re: Offline navigation - BRouter v1.2+
Post by: poutnikl on July 27, 2016, 20:20:55
Hi,

I have created a windows batch

https://raw.githubusercontent.com/poutnikl/Brouter-profiles/master/sedbatch.bat
( with mentioned prerequisities and comments inside )

to generate Brouter bicycle profiles ( some existing, some new )
from the latest  Trekking-poutnik.brf template.

The batch result is a ZIP/7z archive containing the generated profiles.

For convenience, the archives  are uploaded to the GitHub as well.

https://github.com/poutnikl/Brouter-profiles/ (https://github.com/poutnikl/Brouter-profiles/)

It should not be difficult fior the Linux users to modify the batch to be an equivalent Linux shell script,
as it uses  sed.exe and wget.exe utilities from Cygwin, together with 7z.exe

Poutnik
Title: Re: Offline navigation - BRouter v1.2+
Post by: poutnikl on September 18, 2016, 17:19:06
It gives some advantage to run the BRouter-web locally....
https://github.com/nrenner/brouter-web (https://github.com/nrenner/brouter-web)

(https://s22.postimg.org/657zrqfa5/snap081.png) (https://postimg.org/image/657zrqfa5/)
Title: Re: Offline navigation - BRouter v1.2+
Post by: Menion on September 19, 2016, 16:24:42
Interesting. Shouldn't be even better to run whole BRouter locally and not over web interface? Hmm I can imagine even a small web server running directly in Android as localhost. Anyway on PC for some planning tasks ...
Title: Re: Offline navigation - BRouter v1.2+
Post by: poutnikl on September 19, 2016, 17:58:37
The Brouter-web above runs locally as a front-end over the local back-end BRouter.
BUT
1/ Brouter-web is for now intended for desktop browsers, support for mobile ones is in progress. Aside if that, resolution can be the issue for convenient use..
2/ BRouter-web uses online tile servers for OSM maps, it is not designed for full offline use.
3/ The main advantage I had in mind is ability to set the custom profiles as the "standard ones" in choices of the BRouter.

4/ As you have hinted, long routes may find the use for faster desktop CPUs.
Title: Re: Offline navigation - BRouter v1.7
Post by: tommi on October 24, 2016, 08:22:36
BRouter v1.7

New feature: added turncost as start-direction bias (locus only)
Already in use in current Locus? Does Locus already provide start-direction to Brouter?
Title: Re: Offline navigation - BRouter v1.4.7
Post by: poutnikl on October 24, 2016, 22:41:37
See the Arndt's notes in Deutsch > http://forum.locusmap.eu/index.php?topic=4064.msg45570#msg45570

What I have translated by Google is:

QuoteQuote from: balloni55 on Today at 15:23:23

QuoteI ask for a clear explanation added turn cost as start-direction bias (locus only) is best with an example 8)


Menion has built into the call interface two new parameters, which should be used to ensure that a dynamic re-calculation is more "forward" and is not already outdated at the moment it is displayed:

direction
- noManveuverTime

Only this is not feasible at the time because it would require some of the structural changes that are necessary for turning restrictions.

But what I can do easily, I've done: I use the current start direction, and calculate the angle costs relative to this starting direction precisely, like any other angle, for the first step.

As a result, the point from which the forward solution wins is increased by "turncost / costfactor" meters so that in more cases, the forward solution is obtained at the first recalculation.

But as I said, just a light bias, no navi with artificial intelligence, which can guess what you're up to.
Title: Re: Offline navigation - BRouter v1.2+
Post by: poutnikl on December 11, 2016, 19:42:30
Important note- BRouter 1.4.8 has implemented turn restrictions, essential feature for car navigation.
The navigation RD5 data files need update if older than 24NOV2016.
In my understanding, car profiles do not need modification.
Reportedly tested by a german user on 5 turn restricted places in Berlin. See also the Germmen subforum.

http://brouter.de/brouter/revisions.html (http://brouter.de/brouter/revisions.html)

    added turn restrictions (default for car, use considerTurnRestrictions=true for bike)
    fixed elevation interpolation in start/end segments
    fixed error message for very old data files
    removed sanity checks when just reading nogos from waypoint-database
    handling url encoded parameters
    locus codes 13/14 for u-turns left/right
Title: Re: Offline navigation - BRouter v1.2+
Post by: poutnikl on September 23, 2017, 18:02:23
Published new BRouter release 1.4.9  -  may not be in Google Play yet.

(current revision, 24.09.2017) (http://brouter.de/brouter_bin/brouter_1_4_9.zip)

    tweaked distance calculation
    new car profiles, kinematic model based
    basic travel-time/energy support
    modular cost models
    lookup extensions (+conrcete:lanes/plate code-side-hack)
    fix for interface provided nogos
    access to way-context vars from node-context
    removed size limit for encoded tags

http://brouter.de/brouter/revisions.html (http://brouter.de/brouter/revisions.html)
Title: Re: Offline navigation - BRouter v1.2+
Post by: Menion on September 23, 2017, 18:23:19
Ah finally, perfect!
Title: Re: Offline navigation - BRouter v1.2+
Post by: Andrew Heard on September 24, 2017, 00:40:25
Quote from: poutnikl on September 23, 2017, 18:02:23
Published new BRouter release 1.4.9  -  may not be in Google Play yet.
Wow - intriguing features, although I don't know what they mean. I don't see any discussion in the Google Group (https://groups.google.com/forum/#!forum/osm-android-bikerouting), not that there has been in past. So is there any blog post that discusses these features for general interest or does the budding profile author just examine the new BRouter profiles for clues? Does this imply current profiles (internal Locus BRouter and Libor's profiles) could be improved to take advantage of any of these new features?
Title: Re: Offline navigation - BRouter v1.2+
Post by: poutnikl on September 24, 2017, 08:51:46
Hmm, I do not think it was discussed, aside of the nogo iniciative at Locus side and private discussion of LocusMap and BRouter developers. I do remember Arndt, the BRouter author, once mentioned he was working on the new kinematic routing model.

A big part of changes are rather BRouter internal things. For an end user, the important features are these:

- completely new kinematic routing for cars(car-fast, car-eco)(*). It looks like a big thing. This routing  does not use the costfactor, so It currently bypasses the profile developer effort based on costfactor calculation. The routing is tuned by the parameter of maximal target speed vmax(90 for eco, 160 for fast, probably 130 or 110 for non Germans ).It could be tweaked by changing of max default speed for highways classes to change priorities..  I see I will have to rename my car profiles to avoid confusion. Probably by adding P as Poutnik.

- compatibility with the new LocusMap nogo point interactive management   ( for now in Locus beta)

- 2 minor things for profile developers

(*) seems to me as optional, depending on presence of the kinematic model context line in a profile. So in my understanding, both new kinematic car profiles and my old car profiles should be, after renaming, usable side by side.
Title: Re: Offline navigation - BRouter v1.2+
Post by: Bucky Kid on March 08, 2018, 17:58:19
A new Brouter version is here

Quotebrouter_1_4_10.zip(current revision, 07.03.2018)

fixed motorcar TR exceptions

added vr-forum profiles to distribution

added suspect manager to RouteServer

polygon nogo pull request (QMapShack)

nogo encoding pull request (QMapShack)

http://brouter.de/brouter_bin/brouter_1_4_10.zip (http://brouter.de/brouter_bin/brouter_1_4_10.zip)

________________________
Sent from my phone using Tapatalk