I am new to this site so I apologize if I posted in the wrong spot.
I am working on an IOS app. I want the app to be able to know if I am inside a national park boundary and if so which one.
Is this doable with the API?
Dr Google is your friend: https://www.nps.gov/subjects/developer/index.htm
I looked at that but I don't think I can sent it a long/lat and get a response telling me if I am in a park.
I would be interested to learn how to do this as well. Not having tried it before, I think my approach would be:
* Add a feature layer of parks so you can get the polygon boundaries of all the parks: https://livingatlas.arcgis.com/en/browse/#d=2&q=national%20parks&categories=Boundaries%3A111
* get/track/update the GPS location of the device: https://developers.arcgis.com/ios/api-reference/protocol_a_g_s_location_change_handler_delegate-p.html#a0a0b6b44e8b0f9dcf19d86ed380a5098
* determine at some reasonable interval if a feature matches the current GPS location: https://developers.arcgis.com/ios/api-reference/interface_a_g_s_feature_table.html#a43d152517c6ee3fa582d2f741367b7bb
* or determine point is within the polygon boundary of a park you got from the query https://developers.arcgis.com/ios/api-reference/interface_a_g_s_geometry_engine.html#ada0b17e581677fe43583f45e61a578b8
* query additional info about the park https://www.nps.gov/subjects/developer/api-documentation.htm
that's where I would start, but I would be interested to see if anyone has a better way to go about it.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.