Need help with Network Analyst (Routing)

444
1
07-01-2014 10:16 AM
by Anonymous User
Not applicable
I'm stumped. I'm trying to create a small routing application for walking routes on my university campus. Part of this includes routing around obstacles like steps, for the disabled. The routing works fine but when I query the obstacles, they load but are ignored when I solve.

Here is the console log.

Object {routeResults: Array[1], barriers: Array[26], polygonBarriers: Array[0], polylineBarriers: Array[0], messages: Array[0]}
barriers: Array[26]
messages: Array[0]
polygonBarriers: Array[0]
polylineBarriers: Array[0]
routeResults: Array[1]
__proto__: Object

But yet the route goes through the barriers. You can see the code and app at http://cpc-fis.vanderbilt.edu/map/barriers.php.

I am just about bald by now. Any help will be much appreciated.

hue
0 Kudos
1 Reply
by Anonymous User
Not applicable
I think I figured it out. Seems my obstacle data was too accurate. By doing Math.round() on the coordinates allows it to use them.

huey
0 Kudos