TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Mark Ferlatte.
An interface to external mapping applications on iOS.
#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...
}
Use Cocoapods.
$ edit Podfile
pod 'TPMapsApp', '~> 1.0.0'
$ pod install
$ open App.xcworkspace
TPMapsApp is available under the MIT license. See the LICENSE file for more info.