ichibin
Ichibin is a Node.js library to convert location (longitude and latitude) to address. It currently supports Japan only.
Currently, the following features are supported:
- Using MongoDB for data backend
- Downloading MLIT data for reverse-geocoding
Installation
$ npm install --save ichibin
or
$ yarn add ichibin
Usage
To use ichibin for reverse-geocoding, you need to seed data:
$ ./node_modules/.bin/ichibin seed
Then, you can do reverse-geocoding:
const Ichibin = ;const ichibin = ;const lon = 141321212;const lat = 43037301; ichibin; # > dis: 0# obj:# _id: 58f89934cbbdef0404478c5e# prefecture: '北海道'# city: '札幌市中央区'# town: '旭ケ丘五丁目'# street: 5# coordinate: 12# x: -1065293# y: -756811# addressed: 1# represented: 1# update_flag1: 0# update_flag2: 0# ll: 141321212 43037301
Address data
The library uses the following data:
License
Copyright © 2017 Naoto Yokoyama
Distributed under the MIT license. See the LICENSE file for full details.