Is it possible to get name of National Park

315
3
02-09-2021 02:32 PM
VintageSlots
New Contributor II

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?

0 Kudos
3 Replies
JoeBorgione
MVP Esteemed Contributor

Dr Google is your friend:  https://www.nps.gov/subjects/developer/index.htm

can't wait to retire....
0 Kudos
VintageSlots
New Contributor II

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.

0 Kudos
JohnFoster6
Esri Contributor

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.ht...

* 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#a43d152517c6ee3fa...

* 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#ada0b17e581677f...

* 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.

0 Kudos