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={"features":[{"geometry":{"x":-85.564312,"y":38.259724},"attributes":{"Name":"Unit 111A (10215 Hartley Dr, Louisville, KY, USA)"}},{"geometry":{"x":-85.640530591481379,"y":38.200822484557946},"attributes":{"Name":"Event P18022428339 (LL(38.200822,-85.640531))"}}]}&impedanceAttributeName=Minutes&accumulateAttributeNames=Minutes,Kilometers&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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.