react-thai-address
Install
npm install --save react-thai-address
Usage
import ThaiAddress from 'react-thai-address';
// search by attribute
const results = ThaiAddress.search({ province: "พิษณุโลก" }, 10);
// get all provinces
const provinces = ThaiAddress.provinces;
// verify address
// const isValid = ThaiAddress.verify(tumbon, city, province)
Search Attribute
-
{ tumbon: "textToSearch" }
-
{ city: "textToSearch" }
-
{ province: "textToSearch" }
-
{ zipcode: "textToSearch" }
License
Inforvation