MockingPlace 0.2.4

MockingPlace 0.2.4

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Oct 2015

Maintained by Maciej Swic.



MockinPlace is a location simulator for iOS. It plays back GeoJSON tracks and coordinates because Xcode does not do this properly.

  • Supports both the simulator and real devices.
  • Generates speed and heading values from your coordinates.

Usage

  • Include some .geojson files in your target.
  • You can use http://mapbox.github.io/togeojson/ or http://converter.mygeodata.eu to convert your GPX files to GeoJSON
  • @import MockingPlace; or #import <MockingPlace/MockingPlace.h> if your are not using modules.
  • Add [MockingPlace enable]; somewhere after app launch. You should wrap this in #ifdef DEBUG to avoid shipping you app with MockingPlace enabled (It calls one private method to simulate heading updates).
  • Run your app and long press with two fingers for two seconds anywhere to bring up the track selection menu. In the simulator hold down ALT and hold down the mouse button to simulate a long two finger press.

To run the example project, clone the repo, and run pod install from the Example directory first. The example project contains two example GeoJSON files.

Requirements

  • Xcode 7.x or later (for Lightweight Generics)
  • iOS 8.x or later

Installation

MockingPlace is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MockingPlace"

Author

Maciej Swic, [email protected]

License

MockingPlace is available under the MIT license. See the LICENSE file for more info.