Results 1 to 10 of 10

Thread: SKRoutingErrorCodeRouteCannotBeCalculated error

  1. #1
    Etablierter skobbler
    Join Date
    27.06.2016
    Posts
    30

    SKRoutingErrorCodeRouteCannotBeCalculated error

    Often when trying to route trips with long distances we receive this error. Upon adding some retry logic, we found that the same exact trip can be calculated after numerous attempts (4 or 5).

    One such trip was from San Francisco, CA to Houston, CO. After 5 attempts with the same route, we finally were able to receive a successful route from SKRoutingService.

    Can you explain why this might be happening?

  2. #2
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Screenshot_20160722-150437.jpgScreenshot_20160722-144550.jpg
    We've just tested using the latest Android 3.0 and everything is working as expected (tested the routing an navigation menu entry and the navigation UI menu entry)
    Is this case reproducing in the demo app? Can you please send us a video and the setting that you're using?

  3. #3
    Etablierter skobbler
    Join Date
    27.06.2016
    Posts
    30
    FYI, I'm speaking about the iOS SDK. I don't know if the same issue exists on the Android SDK. But the issue we're seeing is that it is not repeatable. Sometimes long trips will calculate, others will not. In the case of an error, we always get this generic SKRoutingErrorCodeRouteCannotBeCalculated error. The next time I see the issue I'll post a video.

  4. #4
    Etablierter skobbler
    Join Date
    27.06.2016
    Posts
    30
    I am able to reproduce this fairly regularly. See the video here:
    https://dl.dropboxusercontent.com/u/...ScreenFlow.mp4

    These are the points of the trip that resulted in error, and eventually worked when retried:

    (Place: name: Current Location [37.7874, -122.408])
    (Place: name: Newark [33.3055, -111.948])
    (Place: name: Dropped Pin [33.5447, -101.911])
    (Place: name: Dropped Pin [40.5033, -115.535])
    (Place: name: Disneyland Rd [43.273, -108.679])

  5. #5
    Etablierter skobbler
    Join Date
    27.06.2016
    Posts
    30
    Any update on this?

  6. #6
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Reported further for investigation

  7. #7
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Unfortunately, we cannot reproduce this issue with the latest traffic 3.0 build. We used to have this issue with long routes on fresh install, but this is fixed now.
    We've modified our demo project to calculate a route at every button press and add a new via point every time. This worked even at fresh install. The video with the fresh install can be found here https://www.dropbox.com/s/vb383xa0gd...oints.mov?dl=0.

    Can you please reproduce this issue in our demo project? or at least give us more details about the environment they're using.

  8. #8
    Etablierter skobbler
    Join Date
    27.06.2016
    Posts
    30
    I'm still seeing this fairly regularly. Here's a log from a recent case this morning:

    Code:
    2016-08-10 10:23:25.882 App[3455:63561] Calculating route with settings: 
    	start: (33.8552, -118.316),
    	viaPoints: [(37.7891, -122.408)],
    	destination: (33.8318, -118.298)
    2016-08-10 10:23:26.193 App[3455:63561] Total duration: 365
    2016-08-10 10:23:26.301 App[3455:63561] Unable to calculate route: 8
    2016-08-10 10:23:26.307 App[3455:63561] Route: SRCARoute: 
    	 Waypoints: (
        "SRCAStop:  (Place: name: Current Location [33.8552, -118.316])  (ETA: 0)  (Distance: 0)",
        "SRCAStop:  (Place: name: Starbucks [37.7891, -122.408])  (ETA: 0)  (Distance: 0)",
        "SRCAStop:  (Place: name: Starbucks [33.8318, -118.298])  (ETA: 365)  (Distance: 4729)"
    )
    	 Routing State: SRCARoutingStateError (code: 8)
    2016-08-10 10:23:27.193 App[3455:63561] Total duration: 365
    2016-08-10 10:23:42.351 App[3455:63561] Calculating route with settings: 
    	start: (33.8552, -118.316),
    	viaPoints: [(37.7891, -122.408)],
    	destination: (33.8318, -118.298)
    2016-08-10 10:23:42.769 App[3455:63561] Unable to calculate route: 8
    2016-08-10 10:23:42.774 App[3455:63561] Route: SRCARoute: 
    	 Waypoints: (
        "SRCAStop:  (Place: name: Current Location [33.8552, -118.316])  (ETA: 0)  (Distance: 0)",
        "SRCAStop:  (Place: name: Starbucks [37.7891, -122.408])  (ETA: 0)  (Distance: 0)",
        "SRCAStop:  (Place: name: Starbucks [33.8318, -118.298])  (ETA: 365)  (Distance: 4729)"
    )
    	 Routing State: SRCARoutingStateError (code: 8)
    2016-08-10 10:23:43.838 App[3455:63561] Calculating route with settings: 
    	start: (33.8552, -118.316),
    	viaPoints: [(37.7891, -122.408)],
    	destination: (33.8318, -118.298)
    2016-08-10 10:23:44.297 App[3455:63561] Unable to calculate route: 8
    2016-08-10 10:23:44.301 App[3455:63561] Route: SRCARoute: 
    	 Waypoints: (
        "SRCAStop:  (Place: name: Current Location [33.8552, -118.316])  (ETA: 0)  (Distance: 0)",
        "SRCAStop:  (Place: name: Starbucks [37.7891, -122.408])  (ETA: 0)  (Distance: 0)",
        "SRCAStop:  (Place: name: Starbucks [33.8318, -118.298])  (ETA: 365)  (Distance: 4729)"
    )
    	 Routing State: SRCARoutingStateError (code: 8)
    2016-08-10 10:23:45.750 App[3455:63561] Calculating route with settings: 
    	start: (33.8552, -118.316),
    	viaPoints: [(37.7891, -122.408)],
    	destination: (33.8318, -118.298)
    2016-08-10 10:23:46.229 App[3455:63561] Unable to calculate route: 8
    2016-08-10 10:23:46.233 App[3455:63561] Route: SRCARoute: 
    	 Waypoints: (
        "SRCAStop:  (Place: name: Current Location [33.8552, -118.316])  (ETA: 0)  (Distance: 0)",
        "SRCAStop:  (Place: name: Starbucks [37.7891, -122.408])  (ETA: 0)  (Distance: 0)",
        "SRCAStop:  (Place: name: Starbucks [33.8318, -118.298])  (ETA: 365)  (Distance: 4729)"
    )
    	 Routing State: SRCARoutingStateError (code: 8)
    2016-08-10 10:23:48.229 App[3455:63561] Calculating route with settings: 
    	start: (33.8552, -118.316),
    	viaPoints: [(37.7891, -122.408)],
    	destination: (33.8318, -118.298)
    2016-08-10 10:23:53.249 App[3455:63561] =[ Finished route calculation (viaPointsOnRoute: 1)]=
    2016-08-10 10:23:53.250 App[3455:63561]    · Total Distance: 634807 meters
    2016-08-10 10:23:53.250 App[3455:63561]    · Total Estimated Time: 444.5 minutes
    2016-08-10 10:23:53.250 App[3455:63561]    · Traffic Delay: 13.6 minutes
    2016-08-10 10:23:53.250 App[3455:63561]    · Corridor downloaded: 1
    2016-08-10 10:23:53.250 App[3455:63561] -----------------------------------------------------
    2016-08-10 10:23:53.250 App[3455:63561]    · ViaPointIdentifier: 0
    2016-08-10 10:23:53.250 App[3455:63561]    · ViaPoint.estimatedTime: 424.8 minutes
    2016-08-10 10:23:53.250 App[3455:63561]    · ViaPoint.distance: 632632 meters
    2016-08-10 10:23:53.250 App[3455:63561] Total duration: 27489
    2016-08-10 10:23:53.251 App[3455:63561] Route: SRCARoute: 
    	 Waypoints: (
        "SRCAStop:  (Place: name: Current Location [33.8552, -118.316])  (ETA: 0)  (Distance: 0)",
        "SRCAStop:  (Place: name: Starbucks [37.7891, -122.408])  (ETA: 26302)  (Distance: 632632)",
        "SRCAStop:  (Place: name: Starbucks [33.8318, -118.298])  (ETA: 27489)  (Distance: 634807)"
    )
    	 Routing State: 2
    All I did was keep retrying and then the route was calculated. For what it's worth, the start & destination are very close to each other, and the viaPoint is 7 hours away.

  9. #9
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    We'll investigate this further.

  10. #10
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    We still cannot reproduce this issue.
    Using the code snippet below (same coordinates) we always get a successfully calculated route, even at fresh install. Please try to reproduce this in our demo project to see if there might be a problem in the way you're using our SDK:
    Add this to the MapDisplayIBViewController, viewDidLoad method:

    [SKRoutingService sharedInstance].routingDelegate = self;
    [SKRoutingService sharedInstance].mapView = self.mapView;

    SKRouteSettings *route = [SKRouteSettings routeSettings];
    route.startCoordinate = CLLocationCoordinate2DMake(33.8552, -118.316);
    route.destinationCoordinate = CLLocationCoordinate2DMake(33.8318, -118.298);
    route.useLiveTraffic = YES;
    route.waitForCorridorDownload = YES;

    SKViaPoint *viaPoint = [SKViaPoint viaPoint:0 withCoordinate:CLLocationCoordinate2DMake(37.7891, -122.408)];
    route.viaPoints = @[viaPoint];

    [[SKRoutingService sharedInstance] calculateRoute:route];

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •