My Javascript code doesnt show route in closest facility

2655
1
07-02-2012 02:33 AM
PratikMehta
New Contributor
Hello,

I have attached code here, it is sample for closest facility. I dont get route from incident to facility.
My closest facility service works perfectly in service directory.

I get this message

dojo.io.script.jsonp_dojoIoScript3._jsonpCallback({"error":{"code":500,"message":"Error solving closest facility","details":["Time attribute specified for directions engine does not exist in network dataset."]}});

Now how to overcome with this problem? Please note that i do not have time data in my network, i am using only length. Please help me as fast as you can.

Pratik M
Tags (2)
0 Kudos
1 Reply
DmitryKudinov
Occasional Contributor
Hi Pratik,

Try adding the following
params.directionsTimeAttribute = "";
to your app - this should do the trick.

Dmitry
0 Kudos