地图应用辅助 ASMapLauncher

码农软件 · 软件分类 · 地图(Map) · 2019-06-10 13:57:20

软件介绍

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

本文地址:https://codercto.com/soft/d/7668.html

Wikis For Dummies

Wikis For Dummies

Dan Woods、Peter Thoeny / For Dummies / 2007-7-23 / USD 24.99

Corporations have finally realized the value of collaboration tools for knowledge sharing and Wiki is the open source technology for creating collaborative Web sites, as either a public site on the In......一起来看看 《Wikis For Dummies》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码