- Notifications
You must be signed in to change notification settings - Fork0
日本の住所を都道府県/市区町村/町名/その他に分割するライブラリです
License
YuukiToriyama/japanese-address-parser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Rust library for parsing Japanese addresses.
Add the following to yourCargo.toml
.
[dependencies]japanese-address-parser ="0.2"
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);}
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);}
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.
This library can be called from the Python world. For more details, seepython module's README.
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.
This software is maintained byYuukiToriyama.If you have any questions, please create a new issue.
This software was inspiredby@geolonia/normalize-japanese-addresses.
In addition, the parsing process usesGeolonia 住所データ which isprovided by株式会社Geolonia.
This crate is distributed under the terms of the MIT license.
About
日本の住所を都道府県/市区町村/町名/その他に分割するライブラリです
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.