Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

日本の住所を都道府県/市区町村/町名/その他に分割するライブラリです

License

NotificationsYou must be signed in to change notification settings

YuukiToriyama/japanese-address-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocsCrates.io (latest)Rust VersionUnit test & Integration test

A Rust library for parsing Japanese addresses.

Usage

Add the following to yourCargo.toml.

[dependencies]japanese-address-parser ="0.2"

Async Version

use japanese_address_parser::parser::Parser;#[tokio::main]asyncfnmain(){let parser:Parser =Default::default();let parse_result = parser.parse("東京都千代田区丸の内1-1-1").await;println!("{:?}", parse_result);}

Blocking Version

use japanese_address_parser::parser::Parser;fnmain(){let parser:Parser =Default::default();let parse_result = parser.parse_blocking("東京都千代田区丸の内1-1-1");// `parse_blocking()` is available on `blocking` feature onlyprintln!("{:?}", parse_result);}

Wasm support

npmjs

This crate is designed to be buildable forwasm32-unknown-unknown withwasm-pack.Pre-compiled wasm module is available on npmjs.com

You can run this crate on your browser. For more details, seewasm module's README.

Python support(experimental)

PyPI - Version

This library can be called from the Python world. For more details, seepython module's README.

Road to v1

The goals of this library are as follows.

  • Supports not only wasm but also multiple platforms and architectures.
  • Enables more advanced normalization. For example, provides more detailed analysis than town level.
  • Returns the location of the given address.
  • Enables processing of town names that no longer exist due to municipal mergers.

Support

This software is maintained byYuukiToriyama.If you have any questions, please create a new issue.

Acknowledgements

This software was inspiredby@geolonia/normalize-japanese-addresses.
In addition, the parsing process usesGeolonia 住所データ which isprovided by株式会社Geolonia.

License

This crate is distributed under the terms of the MIT license.

About

日本の住所を都道府県/市区町村/町名/その他に分割するライブラリです

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp