Need to get country, state , city and area on entering pincode value in Node.js [closed]
I found this package useful & for some reason felt this is easy to use :
zipcodes
Had a simple get API with a path param & response looks like this :
You can use cities to lookup cities based on zipcodes or GPS coordinates. It will return you json as below.
{
zipcode: "07946",
state_abbr: "NJ",
latitude: "40.672823",
longitude: "-74.52011",
city: "Millington",
state: "New Jersey"
}
This package will be only searchable for US. For all countries, you can import data from geonames.org using this package to database. (Only MySQL supported for now)
That package also won't have updated data, but so far, that's the best I've seen before.