Giter Club home page Giter Club logo

locationmanagersimulator's Introduction

LocationManagerSimulator
------------------------

John McKerrell
johnmckerrell.com

This is a basic wrapper for the CLLocationManager class in the
iPhone SDK CoreLocation framework. It is intended to allow you
to get real test data into the iPhone Simulator by replaying
existing GPX files.

I've added stratford.gpx and stratford.plist files which can
be used as a demo, many more that could be used for testing
can be found here: http://www.openstreetmap.org/traces

If you find a good demo feel then fork the project add the
file and push it back to me.

Known Issues
------------
stopUpdatingLocation does work but when you restart it will
not start from the same point, it will be as if you continued
on the journey, which may be correct but I imagine some people
would prefer if you carried on where you left off.

Might be nice if this was a proper framework instead of a few
classes that you had to add to your project.

Preparing files
---------------
You will need to find or create a GPX file and convert it into
a plist using the gpx2plist.sh shell script:
    gpx2plist.sh myfile.gpx myfile.plist

Then add the plist file to your project's resources.

To use.. for now just drag this directory into your project then:

#import "LocationManagerSimulator.h"

...

LocationManagerSimulator *locationManager;

// It is also possible to just use init which will look
// for a file called "simulated-locations.plist"
// and multiplier of 1.0
locationManager = [[LocationManagerSimulator alloc] initWithFilename:@"test-gps" andMultiplier:3.0];

// continue in the normal way.

locationmanagersimulator's People

Contributors

johnmckerrell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

dohoang1102

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.