Summary
This chapter has introduced you to the various capabilities afforded by accessing a network service from within your application. You learned how to use the RouteTask
to find directions from one point to one or more others. You saw how the Directions widget could make that much easier to implement and provide your users with a great interface. Then you saw how you could use the ClosestFacilityTask
to find the closest points of interest (facilities) from one or more origin points (incidents), or use the ServiceAreaTask
to calculate drive times within a specified time period, that might help you site a depot or other facility where response times are important.
All the tasks we have seen in this and previous chapters are great, but their capabilities are limited to those implemented by Esri, and sometimes that won't cut it. In the next chapter, you will learn how to work with geoprocessing tasks, which you can build yourself, publish as a service, and then consume within your web mapping...