不具合 ID 番号 |
BUG-000143029 |
送信されました | September 20, 2021 |
最終更新日 | June 5, 2024 |
適用対象 | ArcGIS Online |
見つかったバージョン | 9.2 |
オペレーティング システム | Windows OS |
オペレーティング システムのバージョン | 10.0 |
修正されたバージョン | October 2021 |
ステータス | Fixed
この不具合は修正されました。 詳細については、「バージョンの修正内容」および「参考情報」(該当する場合) をご参照ください。
|
対処法
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"}
再現の手順