Latest 1.1.2
Homepage https://github.com/trussworks/TPDMapsApp
License MIT
Platforms ios 8.4, requires ARC
Authors

An interface to external mapping applications on iOS.

Build Status

CircleCI

Usage

#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...
}

Installation

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>

License

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

Latest podspec

{
    "name": "TPDMapsApp",
    "version": "1.1.2",
    "summary": "A class to help deal with the variety of mapping apps on iOS.",
    "description": "TPDMapsApp helps you launch the right external mapping application.nnIt detects installed applications and provides APIs to automaticallynselect the most desirable one or to easily create preferences UI tonallow the customer to select their own.",
    "homepage": "https://github.com/trussworks/TPDMapsApp",
    "license": "MIT",
    "authors": {
        "Mark Ferlatte": "[email protected]"
    },
    "source": {
        "git": "https://github.com/trussworks/TPDMapsApp.git",
        "tag": "1.1.2"
    },
    "source_files": "TPDMapsApp/TPDMapsApp/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "8.4"
    }
}

Pin It on Pinterest

Share This