Select to view content in your preferred language

Routing API->Solve doesn't honor vehicle properties like weight, height and width

350
0
06-08-2020 03:03 AM
RaviArepalli
New Contributor

Hi,

We have been trying to use the vehicle properties like weight, width and height with restriction parameters in Solve method or Routing REST API. we are getting same response (geometry), with and without these parameters.  could you please suggest what could be the issue. below we are listing the sample URL with restrictionAtributenames and attributeParameterValues (in bold).

https://xyz.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?f=json&returnStops=true&token=DN4CNql0AJ5bF16y0QqvK2sOk3eRwG3bFRJF_nNI77vdVXLsAFl4YBBXzjcW-6Tb3N-0IjzEeK9PWTrtWLECSnw_OzV6cwVmHTCQn-QCAUtvTzda3cbW0unl2L1LL9ypbdFRdg0Nl6yA9ga6PmFb_A..&stops=%7B%22features%22%3A%5B%7B%22geometry%22%3A%7B%22x%22%3A-85.564312%2C%22y%22%3A38.259724%7D%2C%22attributes%22%3A%7B%22Name%22%3A%22Unit%20111A%20%2810215%20Hartley%20Dr%2C%20Louisville%2C%20KY%2C%20USA%29%22%7D%7D%2C%7B%22geometry%22%3A%7B%22x%22%3A-85.640530591481379%2C%22y%22%3A38.200822484557946%7D%2C%22attributes%22%3A%7B%22Name%22%3A%22Event%20P18022428339%20%28LL%2838.200822%2C-85.640531%29%29%22%7D%7D%5D%7D&impedanceAttributeName=Minutes&accumulateAttributeNames=Minutes%2CKilometers&restrictionAttributeNames=Use%20Preferred%20Hazmat%20Routes%2CThrough%20Traffic%20Prohibited%2CHeight%20Restriction%2CWeight%20Restriction%2CWidth%20Restriction%2CDriving%20a%20Truck&attributeParameterValues=%7B%22attributeName%22%3A%22Height+Restriction%22%2C%22parameterName%22%3A%22Vehicle+Height+%28meters%29%22%2C%22value%22%3A2%7D%2C%7B%22attributeName%22%3A%22Weight+Restriction%22%2C%22parameterName%22%3A%22Vehicle+Weight+%28kilograms%29%22%2C%22value%22%3A1000%7D%2C%7B%22attributeName%22%3A%22Width+Restriction%22%2C%22parameterName%22%3A%22Vehicle+Width+%28meters%29%22%2C%22value%22%3A1%7D%5D&returnRoutes=true&outputLines=esriNAOutputLineTrueShape&returnDirections=true&directionsLanguage=en-us&directionsLengthUnits=esriNAUMiles

Thanks

Ravi

0 Kudos
0 Replies