BRouter can't find OsmAnd map folder

217 views
Skip to first unread message

njh...@gmail.com

unread,
Apr 8, 2017, 4:46:25 AM4/8/17
to OSM Android bikerouting
I have OsmAnd+ 2.5.4 and BRouter 1.4.8 installed on a Google Pixel phone running Android 7.1.2. The OsmAnd data storage folder is set to /storage/emulated/0/Android/data/net.osmand.plus/files (the default location), and contains all the OsmAnd maps for Australia.

I have set additional_maptool_dir=/storage/emulated/0/Android/data/net.osmand.plus/files in the brouter storageconfig.txt file, but when I start the BRouter app and select main action as BRouter app, it tells me "No waypoint database found". What am I doing wrong?

Arndt Brenschede

unread,
Apr 8, 2017, 7:12:56 AM4/8/17
to OSM Android bikerouting


On Saturday, April 8, 2017 at 10:46:25 AM UTC+2, njhp94 wrote:
 
 "No waypoint database found". What am I doing wrong?

I have a similar configuration, and it works. But Android 6 and OsmAnd-free, where the package name does not contain the ".plus".

However, it should work in your configuration as well (if there are no new, nasty suprises in Android 7 file system policy.)

There should be a "favourites.gpx" in the .../files folder.

Did you use the "scanner" to create the  "additional_maptool_dir" entry or create it manually? If you see the helpscreen with the "No waypoint database found" title, the "scan" button should be enabled to scan the filesystem and create such an entry semí-automatic.

Maybe re-create the entry using the scanner?

If all does not help, you could create a debug-log by creating an empty file called "brouterapp.txt" in the internal sd-card base directory. The app will write some debug there if this file exists. (May require to really terminate the brouter-app process before and after the test to avoid caching/flushing issues)

njh...@gmail.com

unread,
Apr 8, 2017, 7:39:44 AM4/8/17
to OSM Android bikerouting
On Saturday, 8 April 2017 21:12:56 UTC+10, Arndt Brenschede wrote:


On Saturday, April 8, 2017 at 10:46:25 AM UTC+2, njhp94 wrote:
 
 "No waypoint database found". What am I doing wrong?

I have a similar configuration, and it works. But Android 6 and OsmAnd-free, where the package name does not contain the ".plus".

However, it should work in your configuration as well (if there are no new, nasty suprises in Android 7 file system policy.)

There should be a "favourites.gpx" in the .../files folder.
 
What path is this folder relative to? There don't appear to be any gpx files on the internal storage of the phone (I searched with the Astro file manager).

Did you use the "scanner" to create the  "additional_maptool_dir" entry or create it manually?

I found storageconfig.txt in the /brouter/segments4 folder. It already had an "additional_maptool_dir" entry but it had the incorrect path - "net.osmand" without the ".plus", so I added the ".plus", but this didn't fix the problem

If you see the helpscreen with the "No waypoint database found" title, the "scan" button should be enabled to scan the filesystem and create such an entry semí-automatic.

When I tap the Scan button, it comes back with "An error occured. Scan did not find any possible waypoint database." 

Maybe re-create the entry using the scanner?

As above 

If all does not help, you could create a debug-log by creating an empty file called "brouterapp.txt" in the internal sd-card base directory. The app will write some debug there if this file exists. (May require to really terminate the brouter-app process before and after the test to avoid caching/flushing issues)

I created the file, restarted the phone, ran brouter and tapped the scan button. The file then contained the following:

logging started at Sat Apr 08 21:35:02 GMT+10:00 2017
using basedir: /storage/emulated/0
adding standard maptool-base: /storage/emulated/0
adding maptool-base from storage-config: /storage/emulated/0/Android/data/net.osmand.plus/files
reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017
reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017
reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017
reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017
reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017
reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017
reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017


 

Arndt Brenschede

unread,
Apr 9, 2017, 4:01:36 AM4/9/17
to OSM Android bikerouting


On Saturday, April 8, 2017 at 1:39:44 PM UTC+2, njhp94 wrote:

There should be a "favourites.gpx" in the .../files folder.
 
What path is this folder relative to? There don't appear to be any gpx files on the internal storage of the phone (I searched with the Astro file manager).

So also from the log-file the app is definitly checking for the existence of

  /storage/emulated/0/Android/data/net.osmand.plus/files/favourites.gpx

If you say there's no such file, then it cannot work, because brouter needs access to that file in order to get the waypoints out of it.

Maybe you did not yet create any waypoint? The
favourites.gpx is created lazily if you add a waypoint.

So I'm afraid you have to locate that file, that's an OsmAnd issue, I cannot do anything more.

However, just to use BRouter with OsmAnd, you do not need that. It's enough to configure BRouter as a routing service in OsmAnd. Only for certain long-distance calculations or to consider nogo-areas, you need access to the waypoint database.



 
Reply all
Reply to author
Forward
0 new messages