R-ArcGIS / arcgisutils

http://r.esri.com/arcgisutils/
Apache License 2.0
15 stars 2 forks source link

Access `/self` endpoint #36

Closed JosiahParry closed 8 months ago

JosiahParry commented 8 months ago

This PR adds a new function arc_self_meta() which provides access to the /self resource returning a named list of properties.

Notably, there is a helperServices property that has info regarding endpoints.

library(arcgisutils)
self <- arc_self_meta() 
str(self$helperServices, 1)
#> List of 27
#>  $ geocode                :'data.frame': 1 obs. of  9 variables:
#>  $ defaultElevationLayers :'data.frame': 1 obs. of  3 variables:
#>  $ route                  :List of 2
#>  $ geometry               :List of 1
#>  $ printTask              :List of 1
#>  $ closestFacility        :List of 2
#>  $ asyncClosestFacility   :List of 2
#>  $ traffic                :List of 1
#>  $ trafficData            :List of 1
#>  $ serviceArea            :List of 2
#>  $ asyncServiceArea       :List of 2
#>  $ syncVRP                :List of 2
#>  $ asyncVRP               :List of 2
#>  $ asyncLocationAllocation:List of 2
#>  $ elevation              :List of 1
#>  $ hydrology              :List of 1
#>  $ elevationSync          :List of 1
#>  $ asyncRoute             :List of 2
#>  $ routingUtilities       :List of 1
#>  $ asyncODCostMatrix      :List of 2
#>  $ odCostMatrix           :List of 2
#>  $ asyncFleetRouting      :List of 2
#>  $ packaging              :List of 3
#>  $ symbols                :List of 1
#>  $ orthomappingElevation  :List of 1
#>  $ workflowManager        :List of 1
#>  $ geoenrichment          :List of 1