TPMapsApp 1.0.1

TPMapsApp 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Mark Ferlatte.



TPMapsApp 1.0.1

  • By
  • Mark Ferlatte

An interface to external mapping applications on iOS.

Usage

#import <TPMapsApp/TPMapsApp.h>

...

NSArray *installedApps = [TPMapsApp installedMapsApps];

TPMapsApp *app = [installedApps firstObject];

NSLog(%"Using map app: %@", app.name);

BOOL opened = app.openWithQuery(@"Philz Coffee");
if (! opened) {
    // Something went wrong...
}

opened = app.openForDirectionsWithStart:@"1 Stockton St, San Francisco, CA"
                            destination:@"3101 24th St, San Francisco, CA"
                             travelMode:TPMapsAppTravelModeTransit];

if (! opened) {
    // Something went wrong...
}

Installation

Use Cocoapods.

$ edit Podfile
pod 'TPMapsApp', '~> 1.0.0'

$ pod install

$ open App.xcworkspace

License

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