nationalparkservice / EMLeditor

EMLeditor edits EML metadata to add required fields for DataStore and automates creating drafts and uploading data packages to DataStore
https://nationalparkservice.github.io/EMLeditor/
Other
5 stars 6 forks source link

update .get_unit_polygon() to use modern rest services #137

Closed RobLBaker closed 4 months ago

RobLBaker commented 6 months ago

currently .get_unit_polygon() (in utils.R) uses an old/legacy version of the API. At some point, a newer API endpoint was introduced. In theory the newer endpoint should be more stable:

old endpoint : https://irmaservices.nps.gov/v2/rest/unit//geography

New endpoint: https://irmaservices.nps.gov/Unit/v2/api//geography

updated swagger documentation:

https://irmaservices.nps.gov/Unit/v2/api-docs/index.html?url=/Unit/v2/api-docs/swagger.json