Status

Location
London, England
Subscribe to GeoRSS Subscribe to KML


OpenStreetMap on the iPhone

Published in Mobile, OpenStreetMap  |  1 Comment


Mikel was inspired to put free data on his iPhone - so he figured out how to
use OpenStreetMap on his iPhone Maps Application.

We tried a number of methods - it should be as simple as changing the tile url that the Maps application queries. But initial “peeking” under the hood didn’t reveal where GMMServerURL is set. In the meantime - Mikel ended up finding the tile cache sqlite database (you don’t want to continually download tiles) and stuffing it with OSM tiles instead. So as far as the Maps application is concerned, its serving cached tiles. Pretty slick.

As Mikel points out, there are some issues to resolve - tile sizes are different on the iPhone, so the zoom levels are off. That would be easy to verify by loading a KML file with markers.

It’s also a slightly sweet answer to Google’s Cease & Desist to MGMaps for using the tiles. Mikel’s “hack” shouldn’t violate anything, he’s just be very considerate to his data provider by pre-caching tiles that have amenable TOS. :)

Similar Posts


Responses

  1. openstreetmap on your iphone « thinkwhere says:

    October 21st, 2007 at 2:58 pm (#)

    [...] openstreetmap on your iphone October 21, 2007 at 7:58 pm | In Mapping, geo, openstreetmap | Tags: openstreetmap iphone maps We joked about it at State of the Map (before the iphone was released) and now Mikel and Andrew hacked the iphone to display openstreetmap tiles! Cool! Turns out, the phone helpfully caches map tiles in a sqllite database on the phone. [...]

Leave a Response