ASMapLauncher 地图应用辅助

程序名称:ASMapLauncher

授权协议: MIT

操作系统: iOS

开发语言: Swift

ASMapLauncher 介绍

ASMapLauncher 是一个用 Swift 写成的 iOS 库,帮助使用各类地图 App 进行导航。

首先,启动 ASMapLauncher,检查将要选择的地图应用程序是否已安装在设备上。

mapLauncher = ASMapLauncher()
var isInstalled = mapLauncher.isMapAppInstalled(ASMapApp.ASMapAppGoogleMaps)

然后,启动被选择的地图应用程序。

if isInstalled {
    var destination: CLLocation! = CLLocation(latitude: 41.0053215, longitude: 29.0121795)
    var fromMapPoint: ASMapPoint! = ASMapPoint(location: CLLocation(latitude: currenctCoordinate.latitude, longitude: currenctCoordinate.longitude), name: "", address: "")
    var toMapPoint: ASMapPoint! = ASMapPoint(location: CLLocation(latitude: destination.coordinate.latitude, longitude: destination.coordinate.longitude), name: "", address: "")
    mapLauncher.launchMapApp(ASMapApp.ASMapAppGoogleMaps, fromDirections: fromMapPoint, toDirection: toMapPoint)
}

目前支持下列地图应用:

  • - Apple Maps

  • - Google Maps

  • - Yandex Navigator

  • - Citymapper

  • - Navigon

  • - The Transit App

  • - Waze

ASMapLauncher 官网

https://github.com/abdullahselek/ASMapLauncher

相关编程语言

Acapela TTS 是一个为 iPhone 和 iPad 开发的 TTS 引...
二维码(QR Code)扫描静态库,扫描效率较高。
RegexKitLite 是一个轻量级的 Objective-C 的正则表...
一款基于ASIHttpReques开源的仿迅雷多线程断点续传功...
实现动态检测网络(wifi)状况,不需要用户手动刷新...
使用iphoneSDK官方NSXMLParserDelegate做的简单xml解...