laptop and a wrench

Bogue

The routing service used by Waypoint does not find a solution for a given request if specifying the 'Use Preferred Truck Routes' parameter in attributeParameterValues.

Dernière publication: October 5, 2021 ArcGIS Online
Numéro d’ID de bogue BUG-000143029
EnvoiSeptember 20, 2021
Dernière modificationJune 5, 2024
S’applique àArcGIS Online
Version trouvée9.2
Système d’exploitationWindows OS
Version du système d’exploitation10.0
Version de correctionOctober 2021
StatutFixed

Solution de contournement

For this test case, the routing service can find the route if the "Use Preffered Truck Routes" restriction attribute is not specified as part of the travelMode parameter. Send the modified parameters from below as a POST request again, and the route is returned.

 

1. Generate an ArcGIS Online token (POST request) with the following parameters below:

 

  • Request URL: https://www.arcgis.com/sharing/rest/generateToken
    • username:-----USERNAME HERE-----
    • password:-----PASSWORD HERE-----
    • f:pjson
    • request:getToken
    • client:referer
    • referer:https://route-ls.arcgis.com/

2. Use the parameters below to send the POST request. Copy-pasting the generated token from the previous step into the token parameter is applicable.

 

  • Request URL: https://route-ls.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve
    • directionsLengthUnits:esriNAUKilometers
    • f:json
    • ignoreInvalidLocations:true
    • returnRoutes:false
    • startTime:now
    • stops:-80.325369,37.154623;-80.325369,37.154623;-80.324547,37.155809;-80.323891,37.157069;-80.323167,37.158481;-80.322442,37.159887;-80.321767,37.161203;-80.321021,37.162616;-80.320140,37.163871;-80.318976,37.165090;-80.317715,37.166084;-80.316164,37.166998;-80.314596,37.167676;-80.312850,37.168296;-80.311225,37.168869;-80.309464,37.169494;-80.307720,37.170107;-80.305971,37.170732;-80.304436,37.171415;-80.302919,37.172331;-80.301685,37.173325;-80.300548,37.174535;-80.299687,37.175769;-80.299380,37.176256
    • token:-----TOKEN HERE-----
    • travelMode:{"attributeParameterValues":[{"attributeName":"Avoid Unpaved Roads","parameterName":"Restriction Usage","value":"AVOID_HIGH"},{"attributeName":"Avoid Private Roads","parameterName":"Restriction Usage","value":"AVOID_MEDIUM"},{"attributeName":"Driving a Truck","parameterName":"Restriction Usage","value":"PROHIBITED"},{"attributeName":"Roads Under Construction Prohibited","parameterName":"Restriction Usage","value":"PROHIBITED"},{"attributeName":"Avoid Gates","parameterName":"Restriction Usage","value":"AVOID_MEDIUM"},{"attributeName":"Avoid Express Lanes","parameterName":"Restriction Usage","value":"PROHIBITED"},{"attributeName":"Avoid Carpool Roads","parameterName":"Restriction Usage","value":"PROHIBITED"},{"attributeName":"Avoid Truck Restricted Roads","parameterName":"Restriction Usage","value":"AVOID_HIGH"},{"attributeName":"TruckTravelTime","parameterName":"Vehicle Maximum Speed (km/h)","value":0}],"impedanceAttributeName":"TruckTravelTime","simplificationToleranceUnits":"esriMeters","uturnAtJunctions":"esriNFSBNoBacktrack","restrictionAttributeNames":["Avoid Carpool Roads","Avoid Express Lanes","Avoid Gates","Avoid Private Roads","Avoid Truck Restricted Roads","Avoid Unpaved Roads","Driving a Truck","Roads Under Construction Prohibited"],"useHierarchy":true,"simplificationTolerance":10,"timeAttributeName":"TruckTravelTime","distanceAttributeName":"Kilometers","type":"TRUCK","id":"ZzzRtYcPLjXFBKwr","name":"Trucking Time"}

Étapes pour reproduire

ID de bogue: BUG-000143029

Logiciel:

  • ArcGIS Online

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement