Open argordmel opened 3 years ago
Hi there, glad you like this tool.
To feed this tool, I'm using the official census data zipcode files here, but it's possible to add zipcodes manually, you can send me your PR with the changes on allZipCodesFilesWithCityNamesShort.js
and shortCityData.js
or I can try to update the files and package this weekend and see if we can pull new zipcode data that was not pulled on the last data update.
It's throwing error on this zip:
const zipCodeData = require('zipcode-city-distance');
let zipInfo = zipCodeData.getInfo('zipcode', '22556');
console.log(zipInfo);
Throwing this error: /node_modules/zipcode-city-distance/helper/getInfo.js:18 if ((type === 'city' || type === 'zipcode') && (zipCodes[query] || cities[city])) { ^
ReferenceError: city is not defined
at Object.module.exports.getInfo (/Users/anwaar/WebstormProjects/test-js/node_modules/zipcode-city-distance/helper/getInfo.js:18:79)
at Object.
Hello, this tool is amazing!
It's possible to add manually or extend your zipcode database?
For example, the zip code 11249 is not in the database but is postal code valid.