Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 677
cyclingIsBetter Avatar asked Jun 19 '13 10:06

cyclingIsBetter


People also ask

How do I add Offline Maps to Apple Maps?

Tap your profile located in the top-right corner of the screen and select "Offline Maps." From there, choose "Select Your Own Map" and zoom in or out to select an area from Maps that you want to download for offline use. Repeat this process so you can download multiple areas.


1 Answers

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
like image 185
Alex Salom Avatar answered Oct 02 '22 00:10

Alex Salom