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.