laptop and a wrench

Erro

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.

Última Publicação: October 5, 2021 ArcGIS Online
Número de ID do Erro BUG-000143029
EnviadoSeptember 20, 2021
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Online
Versão encontrada9.2
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0
Versão FixaOctober 2021
StatusFixed

Solução Provisória

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"}

Etapas para Reproduzir

ID do Erro: BUG-000143029

Software:

  • ArcGIS Online

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download