Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

R interface to the open311 standard for civic service requests

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

rOpenGov/r311

Repository files navigation

rOG-badgeR-CMD-checkCRANCodecov test coverageCodeFactorProject Status: Active – The project has reached a stable, usable state and is being actively developed.

{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.

Installation

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")

Example

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 [°]>

API upkeep

{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

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp