This is a Node.js application that reads an input CSV file with addresses, resolves the postal codes with ZIPCODA API for each address, and writes the results to an output CSV file.
- Install the dependencies:
npm install
- Prepare your
input.csv
file. The file should contain a column named '住所' with the addresses for which you want to resolve the postal codes. See examples below and theinput.csv.example
file.
"住所"
"東京都中野区弥生町3-4-14"
"千葉県市川市真間1-3-20"
"愛知県名古屋市緑区鳴子町1-3-10"
- Run the application:
npm start
- The results are output to the
output.csv
file.
This application uses the ZIPCODA API to resolve zipcodes.
Please be aware of the API call limit when using this application.
The application waits a few seconds for each address to prevent excessive API calls, but caches the results.
If you want to clear the cache, delete the zipcode_cache.json
file.