I have an array of location coordinates that are separated by : (-33.1231231:143.12312312) for example.
I am looping over the array to determine how many polygon points I need to create on a Google Map (CLLocationCoordinate2DMake)
for (index, element) in enumerate(userCoordinates) {
println("\(element)")
}
I would like to split each element in to 2 parts at the : to create longitude and latitude values and then use these in as the coordinates.
I can't figure out how to split the element in to 2 pieces.