- Notifications
You must be signed in to change notification settings - Fork1
R interface to the open311 standard for civic service requests
License
Unknown, MIT licenses found
Licenses found
rOpenGov/r311
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
{r311} is an R interface to the international standardopen311. Open311 APIs are used for civicissue management and public service communication. The standard allowsadministrations to better manage citizen requests, citizens to moreeasily submit requests, and (hence this package) researchers and datascientists to access data regarding public service communication.{r311} supports the seamless management and supplementation ofavailable endpoints, the selection of appropriate APIs to access, andthe retrieval of civic service and request data. Custom queries andextensions (e.g. from CitySDK) are implicitly supported.{r311} isdesigned to require a minimal amount of dependencies, but allow for easyintegration into common R frameworks such as the tidyverse,sf orxml2.
You can install{r311} from CRAN with:
install.packages("r311")Or you can install the development version fromGitHub with:
# install.packages("remotes")remotes::install_github("rOpenGov/r311")
The following example loads{r311}, sets up a jurisdiction andretrieves a small amount of data on service tickets in Cologne, Germany.
library(r311)o311_api("Cologne")o311_requests()#> Simple feature collection with 100 features and 11 fields#> Geometry type: POINT#> Dimension: XY#> Bounding box: xmin: 6.821324 ymin: 50.86269 xmax: 7.091088 ymax: 51.05102#> Geodetic CRS: WGS 84#> # A tibble: 100 × 12#> service_request_id title description address_string service_name#> <chr> <chr> <chr> <chr> <chr>#> 1 30964-2024 #30964-2024 Leuch… "Die Stras… 51061 Köln - … Leuchtmitte…#> 2 30965-2024 #30965-2024 Straß… "Das Schil… 51103 Köln - … Straßenbaus…#> 3 30966-2024 #30966-2024 Defek… "Auf dem R… 51103 Köln - … Defekte Obe…#> 4 30967-2024 #30967-2024 Wilde… "Der Müll … 50859 Köln - … Wilder Müll#> 5 30968-2024 #30968-2024 Schro… "Ein fahru… 51069 Köln - … Schrottfahr…#> 6 30969-2024 #30969-2024 Schro… "Sehr geeh… 50733 Köln - … Schrott-Kfz#> 7 30970-2024 #30970-2024 Wilde… <NA> 51105 Köln - … Wilder Müll#> 8 30971-2024 #30971-2024 Schro… "Schrottra… 50935 Köln - … Schrottfahr…#> 9 30972-2024 #30972-2024 Graff… "grafitti … 50733 Köln - … Graffiti#> 10 30973-2024 #30973-2024 Wilde… "Kühlschra… 50672 Köln - … Wilder Müll#> # ℹ 90 more rows#> # ℹ 7 more variables: requested_datetime <chr>, updated_datetime <chr>,#> # status <chr>, media_url <chr>, status_note <chr>, service_code <chr>,#> # geometry <POINT [°]>
{r311} is powered by a JSON of available APIs (seehere).This list does not claim to be comprehensive nor up-to-date at all timesbut is updated from time to time. If an API is found to be unavailablefor an extended period of time, it will be marked as “questioning”.Questionable APIs will be removed on the next release.
If you know about a stable open311 API that should be added to the list,please consider opening an issue. Otherwise, you can also just use theo311_add_endpoint() function to add the API locally.
About
R interface to the open311 standard for civic service requests
Topics
Resources
License
Unknown, MIT licenses found
Licenses found
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.
