TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2017 |
Maintained by Mark Ferlatte.
An interface to external mapping applications on iOS.
#import <TPDMapsApp/TPDMapsApp.h>
...
NSArray *installedApps = [TPDMapsApp installedMapsApps];
TPDMapsApp *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:TPDMapsAppTravelModeTransit];
if (! opened) {
// Something went wrong...
}
Use CocoaPods.
$ edit Podfile
pod 'TPDMapsApp', '~> 1.1.0'
$ pod install
$ open App.xcworkspace
Then you will need to update your application's Info.plist
with the following:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>comgooglemaps</string>
<string>waze</string>
</array>
TPDMapsApp is available under the MIT license. See the LICENSE file for more info.