Latest 2.0.0
Homepage https://github.com/davoda/Localide
License MIT
Platforms ios 8.0, requires ARC
Authors

Localide is an easy helper to offer users a personalized experience by using their favorite installed apps for directions.

Localide Screenshot

Requierments

  • Swift
  • iOS 8.0+
  • Xcode 7.3

Installation

Add the Localide Classes’ files to your project, or use CocoaPods:

pod 'Localide', '~> 2.0'

Usage

Firstly insert all Third Party Apps’ URL schemes to your Info.plist:

LSApplicationQueriesSchemes:

Info.plist should look like this.

Giving the user the option to use their favorite installed app
let location = CLLocationCoordinate2D(latitude: 37.776692, longitude: 0.0)
Localide.sharedManager.promptForDirections(toLocation: location,  { (usedApp, fromMemory, openedLinkSuccessfully) in
    print("The user picked (usedApp.name)")
}
Other Options
  • You may also choose to have Localide remember the user’s choice for future directions by using the rememberPreference argument.
  • You may also choose to restrict the user from using some applications by using the usingASubsetOfApps argument.
Specific App

You can launch the Apple Maps app with directions to location by using:

let location = CLLocationCoordinate2D(latitude: 37.776692, longitude: 0.0)
Localide.sharedManager.launchNativeAppleMapsAppForDirections(toLocation: location)

For other apps:

if LocalideMapApp.GoogleMaps.canOpenApp() {
    let location = CLLocationCoordinate2D(latitude: 37.776692, longitude: 0.0)
    LocalideMapApp.GoogleMaps.launchAppWithDirections(toLocation: location)
}

Pipeline

  • Support addresses
  • Ask user if they wish to use the same app in the future.

Latest podspec

{
    "name": "Localide",
    "version": "2.0.0",
    "summary": "Localide is an easy helper to offer users a personalized experience by using their favorite installed apps for directions.",
    "homepage": "https://github.com/davoda/Localide",
    "screenshots": "https://raw.githubusercontent.com/davoda/Localide/master/Screenshots/Localide1.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "David Elsonbaty": "[email protected]"
    },
    "social_media_url": "http://twitter.com/NSDavidObject",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/davoda/Localide.git",
        "tag": "2.0.0"
    },
    "source_files": [
        "Classes",
        "Classes/*"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This