https://github.com/ringsaturn/reversejp
π―π΅ Japan Geo Reverse Lookup
https://github.com/ringsaturn/reversejp
geo-reverse geo-reverse-lookups japan
Last synced: about 1 month ago
JSON representation
π―π΅ Japan Geo Reverse Lookup
- Host: GitHub
- URL: https://github.com/ringsaturn/reversejp
- Owner: ringsaturn
- License: mit
- Created: 2025-03-09T10:50:36.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-04-01T10:03:14.000Z (2 months ago)
- Last Synced: 2025-04-27T03:52:07.628Z (about 1 month ago)
- Topics: geo-reverse, geo-reverse-lookups, japan
- Language: Rust
- Homepage:
- Size: 946 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Japan Geo Reverse Lookup
A Rust library for reverse geocoding in Japan. Given a longitude and latitude,
this library returns information about the region(s) the coordinates are located
in, including code, name, and English name.## Installation
### Rust
```bash
cargo add reversejp
``````rust
// reversejp-rust/examples/demo.rs
use reversejp::ReverseJp;let reverse_jp = ReverseJp::with_embedded_data().unwrap();
let props = reverse_jp.find_properties(139.7670, 35.6812);for prop in props {
println!("Code: {}, Name: {}, English Name: {}", prop.code, prop.name, prop.en_name);
}
```Example output:
```text
Code: 130010, Name: ζ±δΊ¬ι½, English Name: Tokyo
Code: 1310100, Name: ε代η°εΊ, English Name: Chiyoda City
```### Python
```bash
pip install reversejp
``````py
# reversejp-python/examples/demo.py
import reversejpprops = reversejp.find_properties(139.7670, 35.6812)
for prop in props:
print(prop.code, prop.name, prop.en_name)
```Example output:
```text
130010 ζ±δΊ¬ι½ Tokyo
1310100 ε代η°εΊ Chiyoda City
```## License
MIT
Data is sourced from the Japan Meteorological Agency website.