/gips

Generate realistic GPX routes for mocking user location in iOS Simulator

Primary LanguageRuby

Gips

Gips in action

Gips is a simple tool for generating GPX routes that mimic realistic user movement in the iOS simulator.

It is a known limitation that simulator moves between waypoints at constant speed, ignoring timestamps defined in the GPX files.

Gips works around this by inserting interpolated points between two waypoints to match the required speed.

Usage

You'll need ruby to use Gips. First, install dependencies by running

bundle

then run gips and supply wanted speed in km/h as integer value:

./gips.rb --speed 20 input.gpx output.gpx

If your route is one-way only, you can generate the way back by using the --reverse option.

Then add the output.gpx to your Xcode project. For more info see http://blackpixel.com/blog/2013/05/simulating-locations-with-xcode.html

Generating input GPX

To generate your own routes, you may find following sites useful:

Sample routes

Few generated routes for Austria can be found in routes/.

License

Both code and sample routes are released under public domain.