GET_macrostrat | R Documentation |
This function fetches data from Macrostrat via the Application Programming Interface (API). This is the core function for handling user requests.
GET_macrostrat(endpoint, query = list(), format = "json", output = "df")
endpoint |
|
query |
|
format |
|
output |
|
A data.frame
(if format
is "csv" or "json" and output
is "df"), a list
(if format
is "json" and output
is "list"), or
sf
object (if format
is "geojson").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.