Package 'kyotocities'

Title: Kyoto Prefecture Administrative District Data
Description: This package provides administrative district data of Kyoto Prefecture, Japan.
Authors: Keisuke ANDO [aut, cre]
Maintainer: Keisuke ANDO <[email protected]>
License: CC BY 4.0
Version: 0.1.2
Built: 2024-11-14 06:00:09 UTC
Source: https://github.com/NONONOexe/kyotocities

Help Index


Download the Kyoto Prefecture administrative district data

Description

Download the Kyoto Prefecture administrative district data provided by the Ministry of Land, Infrastructure, Transport and Tourism.

Usage

download_kyoto_district_data(download_dir = getwd())

Arguments

download_dir

A directory where downloaded file is to saved.

Value

Path of the downloaded file (invisibly).

Examples

## Not run: 
download_kyoto_district_data("download-dir-path")

## End(Not run)

Find district by city name

Description

The function returns the districts of the specified city name. The search is performed with partial matches.

Usage

find_districts(city_name)

Arguments

city_name

Part of the city name

Value

districts of the specified city name

Examples

## Not run: 
fukuchiyama_districts <- find_districts("Fukuchiyama-shi")

## End(Not run)

Find fire stations by city name

Description

The function returns the fire station data of the specified city name. The search is performed with partial matches.

Usage

find_fire_stations(city_name)

Arguments

city_name

Part of the city name

Value

fire station data of the specified city name

Examples

## Not run: 
fukuchiyama_fire_stations <- find_fire_stations("Fukuchiyama-shi")

## End(Not run)

Kyoto prefecture administrative district data

Description

Information on administrative areas such as cities and wards in Kyoto Prefecture.

Usage

kyoto_districts

Format

Each is a tibble with 36 rows 5 variables:

city

City names

city_code

City codes

city_kanji

City names in japanese

area

Area of the city (m^2)

geom

Geometry data (polygon or multi-polygon type) of boundaries

Examples

kyoto_districts

Kyoto Fire Station Data

Description

Location of fire station in Kyoto Prefecture. The data is generated from OpenStreetMap.

Usage

kyoto_fire_stations

Format

Each is a tibble with 122 rows 2 variables:

name

Fire station name

geom

Fire station point

Examples

kyoto_fire_stations

Read the Kyoto Prefecture administrative district data

Description

Read the Kyoto Prefecture administrative district data.

Usage

read_kyoto_district_data(file)

Arguments

file

A file path of data to read.

Format

Each is a tibble with 69 rows 6 variables:

city

City names

city_code

City codes

city_kanji

City names in japanese

geom

Geometry data (polygon or multi-polygon type) of boundaries

Value

Information on administrative areas such as cities and wards in Kyoto Prefecture.

Examples

## Not run: 
kyoto_districts <- read_kyoto_district_data("N03-20230101_26_GML.zip")

## End(Not run)