Learn R Programming

r311 (version 0.4.3)

o311_query: Query an open311 endpoint

Description

Low-level function to perform a generic request to the API currently attached by o311_api. Some open311 implementations support unique operations that are not included in the official documentation. This function can be used to access these URL paths.

Usage

o311_query(path, ..., simplify = TRUE)

Value

The parsed query output, either as a list or dataframe.

Arguments

path

Path appendix used to access endpoint-specific operations.

...

Additional query parameters.

simplify

Whether to simplify the output using jsonlite::toJSON(..., simplify = TRUE).

Details

You can set options(r311_echo = TRUE) to display all requests sent using o311_query.

Examples

Run this code
o311_api("rostock")
# \donttest{
# manually query discovery
o311_query(path = "discovery", simplify = FALSE)

# query a custom path defined by the Klarschiff API
o311_query(path = "areas")
# }

Run the code above in your browser using DataLab