docs.rs failed to build wilayah-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
wilayah
Location lookup for Indonesian villages by GPS coordinates or name.
Returns BMKG-compatible adm4 administrative codes (e.g., 31.71.03.1001)
for 82,689 villages across Indonesia.
Quick start (library)
use wilayah;
let conn = open?;
let nearest = find_nearest?;
let results = find_by_name?;
Quick start (HTTP server)
Building
The first cargo build downloads ~300 MB of raw data from GitHub and builds a
20 MB SQLite database. This is cached locally, so subsequent builds are fast.
Requires network access on first build only.
Data
Sourced from cahyadsn/wilayah and cahyadsn/wilayah_boundaries, based on Kepmendagri No 300.2.2-2430 Tahun 2025.
82,689 villages with pre-computed centroids from BIG polygon boundaries.
Manually rebuilding the database
Relationship to cuaca
cuaca is a BMKG weather indicator for Waybar.
It uses wilayah as a library to resolve --lat/--lon or --name flags
into adm4 codes for BMKG's weather API.