GPX files for iOS Simulator

Jakub picture Jakub · Jun 25, 2013 · Viewed 45.1k times · Source

Where I can find GPX files that I can import into my iOS Simulator?

The iOS Simulator only contains static locations around the world and walk / bike / car drive simulations. This is not good enough for unit testing or other specific use cases.

This is the for GPX file: http://www.topografix.com/GPX/1/1/gpx.xsd

Is there a database or hidden option in Google Maps to get location?

Answer

Kostiantyn Koval picture Kostiantyn Koval · Jul 11, 2013
  1. Run you app. In debug are you can find "Simulate location" button enter image description here

2.You can select one of default locations (here is list)

enter image description here

If you need a custom location

Create new file : File -> New ->File (Resources tab) GPX file click (at the bottom of locations list) "Add GPX File to workspace"

  1. Go to this website and get Latitude and Longitude of a Point that you need.
  2. Edit GPX file that you have created.
  3. Open "Simulate Location", the same as in step 1, and Your location from GPX file will be available in the list.The name of location will be same same as a name of the file.