Routing
Plotting standard start-to-finish routes (with optional mid-points) using findRoute().
Find a route
let fullList = [startCoord, midCoord, endCoord]
SSMap.findRoute(collection: fullList) { result, error in
if let rawGeom = result?.routes?.first?.geometry {
// Decode geometry string into CLLocationCoordinate2D mapping points
let routeCoords = SSMap.coordsDecode(str: rawGeom)
drawLine(routeCoords)
}
}
See also: iOS Map SDK overview, Draw Shapes.