How can I add this to a feature layer so it gets permanently stored?
I've tried using layer.add and applyEdits but nothing seems to happen, and I don't appear to get any error messages.
1) Is the route object returned from the routing service a valid geometry to save in a feature layer?
2) Do I have to create a feature layer first to save it to? Does it have to have the exact same attributes?
3) Has anybody ever done this, and can point me at some sample code that might help?
Many thanks in advance
Thanks for the reply. If I generate my own APIs to save and load the routes, is it possible to add these results to a layer/directions object and have them display as per normal, without having to re-calculate the route?