sta_getLocations: Retrieve all locations from STA instance

Description Usage Arguments Value

View source: R/sta_GET_methods_Locations.R

Description

Given an STA endpoint, will get all location entities and collate them into an sf object. It checks if the STA call has been paginated. If it is paginated, it retrieves the total number of locations and the default $skip value, and iterates through, retrieving all locations.

Usage

1

Arguments

api

character URL of an STA endpoint.

Value

an sf object of every STA location entity.


internetofwater/sta4R documentation built on Dec. 4, 2020, 3:08 a.m.