Thanks. That did it. I changed
Code:
SKRoutingService.sharedInstance().startRouteFromGPXFile(pathToGPXFile)
to
Code:
let GPXRoot = SKGPSFilesService.sharedInstance().loadFileAtPath(pathToTempGPXFile, error: nil)
let datasource: Array = SKGPSFilesService.sharedInstance().childElementsForElement(GPXRoot, error: nil) as Array
let gpsElement = datasource[0] as SKGPSFileElement
SKRoutingService.sharedInstance().calculateRouteWithSettings(routingSettings, GPSFileElement: gpsElement)
Apparently the startRouteFromGPXFile method does not use my routingSettings. Which now, looking back, makes some kind of sense as I did not link my routeSettings to the RoutingService in my previous code. Is there any way to do that other then using the calculateRouteWithSettings method?
Anyway...I still get a slight difference though. For track 2 for example I get the exact same distance, but I get an estimatedTime of 16379 seconds as opposed to your 16599 seconds with the exact same routing settings. Close enough for me, although I do wonder why that is. Any idea?
Bookmarks