I have an array of coordinate objects, and want to connect these (in the order they are) as a Polyline in Mapkit in Swift 3. How do I go about doing this? Here is my data structure
List<Location> (
[0] Location {
lat = 37.33477977;
long = -122.03369603;
},
[1] Location {
lat = 37.33477977;
long = -122.03369603;
},
[2] Location {
lat = 37.33477977;
long = -122.03369603;
},
[3] Location {
lat = 37.33305632;
long = -122.05318781;
},
[4] Location {
lat = 37.33298105;
long = -122.0535463;
}
)
The previous discussions on this topic are now outdated.