Work with prefetched OSM tiles from local SD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uNav |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
It is relatively easy to prefetch tiles from the OSM servers and have them
as a local tree, for example on the SD like
OSM/10/0
OSM/10/0/0.png
OSM/10/0/1.png
OSM/10/1
OSM/10/1/0.png
OSM/10/1/1.png
OSM/10/272
OSM/10/272/445.png
OSM/10/272/446.png
OSM/10/273
OSM/10/273/384.png
...
OSM/18/139404
OSM/18/
OSM/18/
OSM/18/
Of course, they need there space and one can not have world on the device, but at least
the areas of interest. I have two big cities, Munich and Havanna where I live or travel
and they need upto lavel 18 only 1 GByte of space.
uNav should use such "offline" tiles if they are there in preference of fetching them
from the OSM servers.
A possible solution we are testing at the moment is a modified unav.desktop
file as:
Desktop Entry]
Name=unav-osm
Type=
Exec=
Icon=
Terminal=false
X-Ubuntu-
and launching in front of uNav a small HTTP server with the script /home/phablet/
as:
#!/bin/sh
# 1st start the local HTTP server:
cd /media/
python3 -m http.server 8888 &
# now start uNav
cd /userdata/
qmlscene %u qml/Main.qml
This works very nicely with a modified /userdata/
to direct the request to http://
Other solutions may be possible.
Changed in unav: | |
status: | New → Confirmed |
Thanks a lot Matthias for your help ;)
You are a great hacker :)