thai-address-cut
** npm i thai-address-cut **
import thaiAddressCut from ‘thai-address-cut’
or
const thaiAddressCut = require(‘thai-address-cut’)
how to use
const output = thaiAddressCut.cut( address(string), fullSearch(boolean : default = true))
Exaple:
const output = addressCut.cut('123 suphalai ville laksi donmoung, soi changargardutid5, changargardutid road, donmaeung, donmeung, bangkok, 10210')
credit :
https://github.com/peerasak-u/thai-address-splitter
credit file json :
https://www.thepexcel.com/thailand-tambon-database/
https://github.com/ThepExcel/download
https://github.com/ThepExcel/download/blob/master/ThepExcel-Thailand-Tambon.xlsx