Verified Commit 72521e8d authored by asahiocean's avatar asahiocean 🚀
Browse files


parent 05b599e3
......@@ -110,7 +110,7 @@ extension ViewController: ModelDelegate {
// MARK: вершины соединены ребрами при условии, что расстояние между вершинами не более 5км
// condition: vertices are connected by edges, provided that the distance between the vertices is no more than 5 km
if locations.distance < 5000 {
let dashline = DashLine(locations: locations)
let dashline = DashLine(with: locations)
// you can also delegate the storage of all vertices and graphs
// to into a separate class in which can their compare for find matches
......@@ -2,7 +2,7 @@ import Foundation
import MapKit.MKPolyline
extension MKPolyline {
convenience init(locations: [CLLocationCoordinate2D]) {
convenience init(with locations: [CLLocationCoordinate2D]) {
self.init(coordinates: locations, count: locations.count)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment