[OSM-dev] Wishes
Bernhard zwischenbrugger
bz at datenkueche.com
Thu Mar 18 14:21:16 GMT 2010
Hi all
My iPhone map tracker is now nearly finished.
There are 2 things that I can't do.
The GPX upload API is crap.
GPX is XML and there is no need for multipart/form-data upload.
To debug that kind of uploads is not possible.
A small serverside change would be much easier.
In php it is serverside:
$gpsString=file_get_contents("php://input");
$tagString=$_GET["tags"];
$descriptionString=$_GET["description"];
(post the xml, desc and tags as GET paramter)
The other possibility whould be to use gpx metadata for
OSM tags. <gpx><metadata><desc>yes yes</desc><tags>london, paris, new
york</tags></metadata>
2.) Tileserver Cache
Does somebody offer a tileserver with long cache time?
iPhone on 3G, EDGE of offline needs completely differnent cache timing.
Google Maps on iPhone is much faster, but that's because of caching.
Is it possible to set up a virtual host on the tileserver with a Cache
that allows people
to use the map if they are not connected to the internet (no Etag 304) .
mobile-a.openstreetmap.org
mobile-b.openstreetmap.org
mobile-c.openstreetmap.org
Or better because it saves some byte.
ma.osm.org
mb.osm.org
mc.osm.org
I don't know how much browser cache iPhone offers.
Maybe it's very small and the vhosts bring nothing.
But please lets try.
I have a php tile cache here on my laptop but can't test the cache settings.
The php tile cache is too fast - same as browser cache.
6 month cachetime would be good. I can make a config option in my
software to switch tileserver.
Please, please, please
play with cache settings.
Bernhard
More information about the dev
mailing list