Solved! Go to Solution.
Map<String,Object> attributes = new HashMap<String,Object>(); attributes.put("CurbApproach", 1); // set right side curb approach StopGraphic stop = new StopGraphic(new Point(-117,34), attributes);
Map<String,Object> attributes = new HashMap<String,Object>(); attributes.put("CurbApproach", 1); // set right side curb approach StopGraphic stop = new StopGraphic(new Point(-117,34), attributes);
Hello Haider,
The curb approach settings is not an explicit method on the StopGraphic class, but can be added as an attribute on the graphic. The values supported for offline routing are the same as those supported for Network Analyst services. Detailed information about each value can be found in the stop attribute section of the service docs http://resources.arcgis.com/en/help/arcgis-rest-api/#/Route_service/02r300000036000000/.
A quick reference would look something like this:
0 - either side
1 - right side
2 - left side
3 - no U-turn
And accompanying Android code:Map<String,Object> attributes = new HashMap<String,Object>(); attributes.put("CurbApproach", 1); // set right side curb approach StopGraphic stop = new StopGraphic(new Point(-117,34), attributes);
Best,
Joseph