MapKit 封装器 MapManager

码农软件 · 软件分类 · 地图(Map) · 2019-06-10 15:44:15

软件介绍

Map manager 是 MapKit 封装器,提供路线方向绘制,完全使用 Swift 编写。

简单示例——使用 Apple 设备定向:

var latOrigin = 37.331789
var lngOrigin = -122.029620
var coordinateOrigin = CLLocationCoordinate2D(latitude: latOrigin, longitude: lngOrigin)
var latDestination = 37.231789
var lngDestination = -122.029620
var coordinateDestination = CLLocationCoordinate2D(latitude: latDestination, longitude: lngDestination)

mapManager.directions(from: coordinateOrigin, to: coordinateDestination) { (route, directionInformation, boundingRegion, error) -> () in

    if (error? != nil) {

        println(error!)
    }else{

        if let web = self.mapView?{

            dispatch_async(dispatch_get_main_queue()) {

                web.addOverlay(route!)
                web.setVisibleMapRect(boundingRegion!, animated: true)

                }

            }
        }

    }


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

Understanding Machine Learning

Understanding Machine Learning

Shai Shalev-Shwartz、Shai Ben-David / Cambridge University Press / 2014 / USD 48.51

Machine learning is one of the fastest growing areas of computer science, with far-reaching applications. The aim of this textbook is to introduce machine learning, and the algorithmic paradigms it of......一起来看看 《Understanding Machine Learning》 这本书的介绍吧!

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

各进制数互转换器

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具