Search code examples
iosdictionaryofflineopenmap

IOS: use offline maps


in my app I want to use offline maps and with this maps use gpx files to have a route. I found openstreetmap to do it, but is there some better services? (the best solution with level curves) thanks


Solution

  • Offline maps require a bit of experience in iOS since there aren't many projects and examples out there. However, you got one project called Route-Me which could give you a starting point. We used it to develop Metro Valencia Offline which successfully made it to the App Store. I wrote a small tutorial on how to add Route-Me into your project.

    Basically you can use any maps feed you may want (OpenStreetMaps is one of them and also the one we used). What you'll have to do is:

    1. Download the map tiles ( https://metacpan.org/pod/Geo::OSM::Tiles )
    2. Put them into a SQLite database ( http://shikii.net/blog/downloads/map2sqlite-bin.zip )
    3. Modify Route-Me for the tiles to be fed from the database instead of from OpenStreetMaps website