Create Japanese Administration Area and Office Maps

Utilizing the data that Japanese administration area provided by the National Land Numerical Information download service (<>). This package provide map data is based on the Digital Map 25000 (Map Image) published by Geospatial Information Authority of Japan (Approval No.603FY2017 information usage <>).

Travis-CI Build Status CRAN_Status_Badge AppVeyor build status Coverage status


In this package, the administrative area data to be provided uses the National Land Numerical Information "National Land Numeral Information" Shinya Uryu is editing and processing this data. Therefore, when preparing a secondary work using this data, it is necessary to follow the term of the National Land Numerical Information.

This package provide map data is based on the Digital Map 25000 (Map Image) published by Geospatial Information Authority of Japan (Approval No.603FY2017 information usage


Install from CRAN.


For developers, please use the devtool package to install via the GitHub repository.




Administrative area data

jpn_pref(14, district = FALSE)
jpn_cities(14, admin_name = "海老名市")
jpn_cities(33, admin_name = c("倉敷市", "笠岡市"))

Administration office data

jpn_admins(jis_code = 33)
jpn_admins(jis_code = c("33101", "33212"))


jpndistrict 0.3.3


  • Added new functions to validate jis code. (code_validate(), code_reform() and cityname_reform())
  • English column names have been added to the jpnprefs data set. #21, by Ryo Nakagawara (@Ryo-N7)
  • Added new function to find city code (find_jis_code()). This function do not consider historical changes. #23

Fixed Issues

  • Mismatching variable names in jpn_pref() #17
  • Always returns the nearest city or prefecture #18
  • Failed in code_validate() #19
  • Unify behavior due to differences in parameters in jpn_pref(). #22

jpndistrict 0.3.2

  • Clarified the arguments that to select administration area. pref_code is jis code from 1 to 47. jis_code is an identifier for a city that range of 5 digits.
  • find_city() is support sf geometry.

Fixed Issues

  • Remove redundant character from prefecture code 13 data #13
  • mesh_district() now return only selected administation area #15
  • Broken district_viewer() #16

jpndistrict 0.3.1

  • Setup tidy development environment.


  • Fix some bugs.
    • City administration data update #4
    • Reverse geocoding failed behabior #10

jpndistrict 0.3.0

  • Updated citation and licence.
    • Approval No.603FY2017 information usage


  • Fix some bugs (#6, #7).


  • New function a find from coordinates to prefecture and city that find_pref() and find_city().
  • Add a function mesh_district() that export to meshed city area.
  • Projected coordinates are unified to WGS84 (espg: 4326).
  • Rename spdf_jpn_pref() function to jpn_pref().

jpndistrict 0.2.0

  • Added support for sf.
  • Remove gg_jpn_district(). Use instead ggplot2::geom_sf() (ggplot2 > 2.2.1)
  • Convert string variables to factor always FALSE.

jpndistrict 0.1.1

  • Modified raw data download method wget to auto.
  • Character encoding for administration area dataset to UTF8. (#2)

jpndistrict 0.1.0

  • Added a file to track changes to the package.
  • Prepare base functions.
  • Added district_viewer() for shiny gadgets.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.3.8 by Shinya Uryu, 6 days ago

Report a bug at

Browse source code at

Authors: Shinya Uryu [aut, cre] , Geospatial Information Authority of Japan [dtc] (This package data sets , National Land numerical information by the Geographical Survey Institute with the approval of Geographical Survey Institute Head (Approval No.603FY2017 information usage))

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports curl, googlePolylines, dplyr, jpmesh, leaflet, magrittr, memoise, miniUI, purrr, rlang, sf, shiny, tibble, tidyselect, tidyr

Suggests covr, knitr, lwgeom, rvest, testthat

Enhanced by NipponMap.

See at CRAN