Greetings,
My team is using the Professional Developer Subscription and we are primarily developing using the Java Maps SDK. We are trying to get the ClosestFacility functionality to work. We can get the immediate example Closest Facility Example to work using the sample server. However, when we try to hit the same server using different points it does not work. The example is given using a "sample server" but it not apparent how to hit the "proper" server to use this location service.
The documentation for ClosestFacilityTask states:
"To solve closest facilities using an ArcGIS Network Analyst service hosted on ArcGIS Online or on-premises with ArcGIS for Server, create a ClosestFacilityTask by passing in the URL of the service to the ClosestFacilityTask(String) constructor. "
I have two questions--
Thank you!
Jared
Hello,
The sample service has a very limited geographic extent (I'm not sure what it is precisely, but I think it's just a small area around San Diego). If your different points are outside that limited extent, you won't get results.
In answer to your questions:
Hope that helps.
Nick.