thai-address-cut
Version:
Library for split the address in Thailand for Thai and English languages.
27 lines (23 loc) • 783 B
Markdown
# thai-address-cut
### ** npm i thai-address-cut **
```js
import thaiAddressCut from ‘thai-address-cut’
```
or
```js
const thaiAddressCut = require(‘thai-address-cut’)
```
how to use
```js
const output = thaiAddressCut.cut( address(string), fullSearch(boolean : default = true))
```
Exaple:
```js
const output = addressCut.cut('123 suphalai ville laksi donmoung, soi changargardutid5, changargardutid road, donmaeung, donmeung, bangkok, 10210')
```
credit : <br />
https://github.com/peerasak-u/thai-address-splitter <br />
credit file json : <br />
https://www.thepexcel.com/thailand-tambon-database/ <br />
https://github.com/ThepExcel/download <br />
https://github.com/ThepExcel/download/blob/master/ThepExcel-Thailand-Tambon.xlsx <br />