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?
"No waypoint database found". What am I doing wrong?
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)
logging started at Sat Apr 08 21:35:02 GMT+10:00 2017using basedir: /storage/emulated/0adding standard maptool-base: /storage/emulated/0adding maptool-base from storage-config: /storage/emulated/0/Android/data/net.osmand.plus/filesreading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017reading timestamp at systime Sat Apr 08 21:35:02 GMT+10:00 2017
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).
/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.