← Back to team overview

ubuntu-phone team mailing list archive

Re: OpenStreetMap

 

El día Monday, March 30, 2015 a las 06:18:39PM +0100, Dave Morley escribió:

> Did you look at OSMtouch it's a native app rather than just webapp I
> think you can get basic routing on it and location is pretty reliable
> once you have the first fix can take a tap or two to get it.  That also
> works as you expect with the mapping arrow staying static and the map
> moving around it iirc too.

Thanks for the pointer. I will test and see if it gives what I'm looking
for.

I poked around in the file system to see where it stores the fetched
tiles of OSM and it seems to be here:

$ ls -l /home/phablet/.cache/me.yohanboniface.osmtouch
total 18608
-rw-rw-r-- 1 phablet phablet  5535 Mar 30 20:18 osm_100-1-10-511-346.png
-rw-rw-r-- 1 phablet phablet  5645 Mar 30 20:18 osm_100-1-10-511-347.png
-rw-rw-r-- 1 phablet phablet  5962 Mar 30 19:58 osm_100-1-10-512-344.png
...
-rw-rw-r-- 1 phablet phablet  7102 Mar 31 07:17 osm_100-1-18-139507-91092.png
-rw-rw-r-- 1 phablet phablet  7687 Mar 31 07:17 osm_100-1-18-139507-91093.png
-rw-rw-r-- 1 phablet phablet 10140 Mar 31 07:18 osm_100-1-18-139507-91094.png
-rw-rw-r-- 1 phablet phablet  4477 Mar 31 07:18 osm_100-1-18-139507-91095.png
-rw-rw-r-- 1 phablet phablet  8683 Mar 31 07:17 osm_100-1-18-139508-91089.png

the 10 or the 18 is the resolution of the map and the remaining part
gives the coordinate of the tile; they are all stored in only one
directory and not in subdirs (which would be make the access faster, I
think).

I will test if I can pre-fetch tiles with my shell script I'm using for
the Openmoko foxtrotgps. This is for locations where you don't have
access (or only expensive access) to Internet with your mobile, for example in Cuba.

Was foxtrotgps never ported as an app to ubuntu-phone? It is there for
the normal desktop.

Thanks in any case for your hint.

	matthias

-- 
Matthias Apitz, guru@xxxxxxxxxxx, http://www.unixarea.de/ +49-170-4527211
"Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden."
"Si el hombre es formado por las circunstancias entonces es necesario formar humanamente
las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)


References