In my application I have to get a list of vehicles of a particular type and then determine which vehicle is closest to a certain location. This has to be done in real-time since the locations are dynamic. I don't have access to a routing service to be able to use Closest Facility, so I loop through each vehicle and run a Route Task, then sort the vehicles by time/distance. This can take a few seconds when running many vehicles.
Any suggestions on how to speed up the process?