Verified Commit 7bd029ff authored by asahiocean's avatar asahiocean 🚀
Browse files


parent 0aef96ae
......@@ -30,7 +30,6 @@ extension ViewController: ModelDelegate {
case .routecalc:
print("Trying to make the shortest route!")
let coords = m.route.compactMap({ $0.coordinate })
for (i,coord) in coords.enumerated() {
if (i+1) < coords.count {
createRouteTo(from: coord, to: coords[i+1])
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