mapCoordinateList: [
CLLocationCoordinate2D]) -> MKPolyline {
let polyline = MKPolyline(coordinates: mapCoordinateList, count: mapCoordinateList.count)
return polyline
}
// Create an array of coordinates from an array of locations. Used to create a route line.
func getMapCoordinates(locationList: [CLLocation]) -> [CLLocationCoordinate2D] {
var mapCoordinates = [CLLocationCoordinate2D]()
for location in locationList {
let coordinate = CLLocationCoordinate2DMake(location.coordinate.latitude, location.coordinate.longitude)
map
免责声明:
以上内容除特别注明外均来源于网友提问,创作工场回答,未经许可,严谨转载。