<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          ASMapLauncher地圖應(yīng)用輔助

          聯(lián)合創(chuàng)作 · 2023-09-26 11:06

          ASMapLauncher 是一個用 Swift 寫成的 iOS 庫,幫助使用各類地圖 App 進(jìn)行導(dǎo)航。

          首先,啟動 ASMapLauncher,檢查將要選擇的地圖應(yīng)用程序是否已安裝在設(shè)備上。

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

          然后,啟動被選擇的地圖應(yīng)用程序。

          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)
          }

          目前支持下列地圖應(yīng)用:

          • - Apple Maps

          • - Google Maps

          • - Yandex Navigator

          • - Citymapper

          • - Navigon

          • - The Transit App

          • - Waze

          瀏覽 19
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  日韩激情综合网 | 黄色黄色1级a片 | 人妻在线视频播放 | 99综合视频一区 | 国内精品在线观看小视频 |