Select to view content in your preferred language

iOS Closest Facilities Example

497
1
07-27-2017 01:50 AM
VictorGallego1
Deactivated User

Hello!
I am not able to do an functional example of closest facility in ios.

Someone who has solved it?

Thanks

0 Kudos
1 Reply
MarkDostal
Esri Regular Contributor

Thank you for your question.  Using the AGSClosestFaciltyTask is very similar to the other task-based APIs, such as the AGSRouteTask (routing) or the AGSLocatorTask (geocoding).  Samples for those can be found in the ArcGIS Runtime Samples app for iOS:  GitHub - Esri/arcgis-runtime-samples-ios: Swift samples demonstrating various capabilities of ArcGIS... 

Specifically, for routing:

arcgis-runtime-samples-ios/FindRouteViewController.swift at master · Esri/arcgis-runtime-samples-ios... 

And for geocoding:

arcgis-runtime-samples-ios/FindAddressViewController.swift at master · Esri/arcgis-runtime-samples-i... 

If those don't help, please post the code you're having problems with and I'll take a look.

Cheers,

Mark

0 Kudos