jp-location-relation

Crates.iojp-location-relation
lib.rsjp-location-relation
version0.1.1
sourcesrc
created_at2022-08-14 14:07:56.959951
updated_at2022-08-14 14:11:51.948907
description隣接する市区町村の一覧を取得
homepage
repositoryhttps://github.com/uiuifree/rust-jp-location-relation
max_upload_size
id645436
size218,738
Misaki (uiuifree)

documentation

README

隣接エリアの取得

-[ ] 隣接都道府県の取得 -[x] 隣接市区町村の取得 -[ ] 隣接街名の取得

データソース

https://www.stat.go.jp/data/mesh/m_itiran.html

実行例

let city = City::find_by_id(13101).unwrap();

println!("{:?}",city.relation_city_id);
// [13103, 13104, 13105, 13102, 13106]
println!("{:?}",city.relation_city_name
// ["港区", "新宿区", "文京区", "中央区", "台東区"]
Commit count: 0

cargo fmt