地图应用辅助 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://www.codercto.com/soft/d/7668.html

七周七并发模型

七周七并发模型

Paul Butcher / 黄炎 / 人民邮电出版社 / 2015-3 / 49.00元

借助Java、Go等多种语言的特长,深度剖析所有主流并发编程模型 基于锁和线程的并发模型是目前最常用的一种并发模型,但是并发编程模型不仅仅只有这一种,本书几乎涵盖了目前所有的并发编程模型。了解和熟悉各种并发编程模型,在解决并发问题时会有更多思路。 ——方腾飞,并发编程网站长 当看到这本书的目录时,我就为之一振。它涉及了当今所有的主流并发编程模型(当然也包括Go语言及其实现的CSP......一起来看看 《七周七并发模型》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试