Hello
I'm calling the route service from iOS as follows:
let routeTask = AGSRouteTask(url: URL(string: "https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World")!)
</CODE></P><P><CODE>routeTask.defaultRouteParameters { [weak self] (defaultParameters, error) in guard error == nil else {
print("Error getting default parameters: \(error!.localizedDescription)")
return
}
I keep hitting the error condition with Error Code 15 stating "Error getting default parameters: Cannot call this method in this context".
Anyone have any leads on what might cause this?
Thanks