Skip to main content

Japan Geo Reverse Lookup

Project description

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

cargo add reversejp
// 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:

Code: 130010, Name: 東京都, English Name: Tokyo
Code: 1310100, Name: 千代田区, English Name: Chiyoda City

Python

pip install reversejp
# reversejp-python/examples/demo.py
import reversejp

props = reversejp.find_properties(139.7670, 35.6812)

for prop in props:
    print(prop.code, prop.name, prop.en_name)

Example output:

130010 東京都 Tokyo
1310100 千代田区 Chiyoda City

License

MIT

Data is sourced from the Japan Meteorological Agency website.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reversejp-0.1.1.tar.gz (939.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

reversejp-0.1.1-cp39-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9+Windows x86-64

reversejp-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

reversejp-0.1.1-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.7 MB view details)

Uploaded CPython 3.9+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file reversejp-0.1.1.tar.gz.

File metadata

  • Download URL: reversejp-0.1.1.tar.gz
  • Upload date:
  • Size: 939.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for reversejp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5cb677783c9a74b53f39055e3ff21f7ca9d3070457da860b697bf9267ee9f757
MD5 55a96ad907ceebc1177ab1403e343cf7
BLAKE2b-256 4d3f2efcae7b20c577d9746f28759df5fd9d4d7e3f7347809b6e049b452889e0

See more details on using hashes here.

File details

Details for the file reversejp-0.1.1-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: reversejp-0.1.1-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for reversejp-0.1.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7f56f70cd5f694d0bf1f910d885f1954a710d6baf216664b3a3ff414411433dd
MD5 5c378848e59ec2fbdfa3b5bfcfc5990b
BLAKE2b-256 a5d2e99f93b67227138e9fd8caa6dc365eb708f5329c1db2a4e149522d6a9557

See more details on using hashes here.

File details

Details for the file reversejp-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for reversejp-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2711a4ba9f60822753e7e6c03e7c904d01c5d9f5f9ab1e2c6091bc05e1675647
MD5 3f28c5839756a21dbebeda2c7ee45961
BLAKE2b-256 f5d5131e3fd399e71a1f1ba714cebe65ca0778fecec1c96e34ddc30dbc86ebd2

See more details on using hashes here.

File details

Details for the file reversejp-0.1.1-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for reversejp-0.1.1-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 557642de10cf74a2c957b9412cfeba86d1cf41222d7d82a9c27a048a7ec744fa
MD5 4af5be5c10a3df8f83ab0fb8bf4d4533
BLAKE2b-256 38c335b1bae0e0fdd0c58398548f268202e7df887fc2d48fc922299e98ce58ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page