Title: | R Wrapper for Istanbul Municipality Open Data Portal |
---|---|
Description: | Call wrappers for Istanbul Metropolitan Municipality's Open Data Portal (Turkish: İstanbul Büyükşehir Belediyesi Açık Veri Portalı) at <https://data.ibb.gov.tr/en/>. |
Authors: | Berk Orbay [aut, cre], Emrah Er [ctb] |
Maintainer: | Berk Orbay <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.2 |
Built: | 2025-03-06 03:02:19 UTC |
Source: | https://github.com/berkorbay/ibb |
Fundamental call function of (almost) all IBB Open Data Portal (exceptions apply)
call_data_ibb( call_phrase = "", root_url = "https://data.ibb.gov.tr/api/3/action/" )
call_data_ibb( call_phrase = "", root_url = "https://data.ibb.gov.tr/api/3/action/" )
call_phrase |
Suffix of the call url. |
root_url |
Root of the calls. |
Changes API language to English
change_language_to_english()
change_language_to_english()
Get All Data Sources
get_all_data_sources(get_all_info = FALSE)
get_all_data_sources(get_all_info = FALSE)
get_all_info |
If TRUE return the whole list, otherwise just return the required result data frame. |
Get Info on All Data Sources
get_all_detailed_info(verbose = FALSE)
get_all_detailed_info(verbose = FALSE)
verbose |
If TRUE, it prints the track of the data being imported. |
Given a data resource ID, this function returns the data frame.
get_data_frame_ibb(resource_id, limit = "", return_json = FALSE)
get_data_frame_ibb(resource_id, limit = "", return_json = FALSE)
resource_id |
Resource ID of the wanted data set. Run get_all_detailed_info to see the available IDs |
limit |
Maximum number of records |
return_json |
If TRUE, return a json string instead of a data frame. |
## Not run: get_data_frame_ibb("99d1edb6-a889-4e69-be7b-21a3f90101f1") ## End(Not run)
## Not run: get_data_frame_ibb("99d1edb6-a889-4e69-be7b-21a3f90101f1") ## End(Not run)
Get Info on a Data Source
get_detailed_info_on_data_source(package_id, get_all_info = FALSE)
get_detailed_info_on_data_source(package_id, get_all_info = FALSE)
package_id |
Package ID taken from the package list. Run get_all_detailed_info to see the available IDs |
get_all_info |
If TRUE return the whole list, otherwise just return the required result data frame. |
## Not run: get_detailed_info_on_data_source("594ca91d-0c71-41da-b50a-c7cd30fab67a") ## End(Not run)
## Not run: get_detailed_info_on_data_source("594ca91d-0c71-41da-b50a-c7cd30fab67a") ## End(Not run)
It contains environmental monitoring and control data with 13 parameters, measured in 15-minute periods in 38 pre-determined locations in Istanbul for 2020.
get_environmental_monitoring_and_control_data( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
get_environmental_monitoring_and_control_data( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
params |
List of parameters |
## Not run: get_environmental_monitoring_and_control_data(params = list(limit = 5)) ## End(Not run)
## Not run: get_environmental_monitoring_and_control_data(params = list(limit = 5)) ## End(Not run)
Data set contains info about number of locations, number of subscribers, number of sessions, number of devices, data usage and usage duration.
get_ibb_wifi_daily_data_usage( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
get_ibb_wifi_daily_data_usage( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
params |
List of parameters |
Data set of new subscribers
get_ibb_wifi_daily_new_subscribers( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
get_ibb_wifi_daily_new_subscribers( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
params |
List of parameters |
Data set of new subscribers by subscription location
get_ibb_wifi_new_subscribers_by_location( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
get_ibb_wifi_new_subscribers_by_location( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
params |
List of parameters |
Contains information on the number of complaints and responses to water outages and responses from all districts and neighborhoods across Istanbul in 2019, from the Istanbul Water and Sewerage Administration (İSKİ) call center.
get_iski_call_center_complaint_stats( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
get_iski_call_center_complaint_stats( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
params |
List of parameters |
## Not run: get_iski_call_center_complaint_stats(params = list(limit = 5)) ## End(Not run)
## Not run: get_iski_call_center_complaint_stats(params = list(limit = 5)) ## End(Not run)
Get ISPARK Locations
get_ispark_locations(params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")))
get_ispark_locations(params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")))
params |
List of parameters |
## Not run: get_ispark_locations(params = list(limit = 5)) ## End(Not run)
## Not run: get_ispark_locations(params = list(limit = 5)) ## End(Not run)
Includes the number of parks, number of trees maintained, number of sports grounds, length of sports fields, number of playgrounds, number of trees planted, and type of green areas in Istanbul in 2019.
get_park_garden_green_area_data( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
get_park_garden_green_area_data( params = list(limit = Sys.getenv("IBB_QUERY_LIMIT")) )
params |
List of parameters |
## Not run: get_park_garden_green_area_data(params = list(limit = 5)) ## End(Not run)
## Not run: get_park_garden_green_area_data(params = list(limit = 5)) ## End(Not run)
Data frame containing all resource ids and data sources of IBB Open Data Portal
ibb_data_sources
ibb_data_sources
An object of class tbl_df
(inherits from tbl
, data.frame
) with 205 rows and 23 columns.
Sets maximum number of returned results
set_query_limit(limit = 100)
set_query_limit(limit = 100)
limit |
Limit of the maximum results |