Latest 1.0.0
Homepage https://github.com/OMTS/NavigationAppRouter
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, MapKit, AddressBook
Authors

CI Status
Version
License
Platform

Overview

NavigationAppRouter is a class, written in Swift, that allows user to choose his prefered navigation app to go to a place.

Third party navigation apps supported:

  • Google Maps,
  • Waze,
  • Citymapper.

Usage

App configuration

Add third party navigation apps URL schemes in LSApplicationQueriesSchemes array of infos.plist file:

  • comgooglemaps
  • waze
  • citymapper

Code

import NavigationAppRouter

let placemark = MKPlacemark(coordinate: CLLocationCoordinate2D(latitude: 48.867460, longitude: 2.346767), addressDictionary: nil)

NavigationAppRouter.goToPlace(placemark, fromViewController: viewController)

Sample project

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS8

Installation

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

pod "NavigationAppRouter"

Author

fpoisson, [email protected]

License

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

Latest podspec

{
    "name": "NavigationAppRouter",
    "version": "1.0.0",
    "summary": "NavigationAppRouter checks for installed navigation apps and proposes a 'Go to' function",
    "description": "NavigationAppRouter checks for installed navigation apps and provides a simple "Go to" API.nnList of navigation apps supported:nn  - Plans (default),n  - Google Maps,n  - Waze,n  - CityMapper.",
    "homepage": "https://github.com/OMTS/NavigationAppRouter",
    "license": "MIT",
    "authors": {
        "fpoisson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/OMTS/NavigationAppRouter.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "NavigationAppRouter": [
            "Pod/Assets/*.png",
            "Pod/Localization/*.lproj"
        ]
    },
    "frameworks": [
        "UIKit",
        "MapKit",
        "AddressBook"
    ]
}

Pin It on Pinterest

Share This