My Javascript code doesnt show route in closest facility

07-02-2012 02:33 AM
New Contributor

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{"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
Occasional Contributor
Hi Pratik,

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

0 Kudos