get_data | R Documentation |
Get data from an endpoint
get_data(query_url, query, pb = NULL, my_token)
query_url |
the query url which is passed to httr::POST() |
query |
the query to POST |
pb |
progress bar - default is NULL for no progress bar |
my_token |
the access token or function used to generate one |
This function accepts a query URL and extracts a tibble from the response. When a returnGeometry = "false" query was used previously get_geojson wouldn't parse the data correctly and would return an empty tibble A new function get_tibble has been added to use a different method for requesting and parsing data when the geometry isn't returned.
either a tibble or sf object depending on return_geometry
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.