A zipcode-range search engine in nodejs.
You put in a zipcode and a range and it gives you
some infomation about the zipcode and all neaby zipcodes within range.
Built do be fast.
A input csv file that contains your data source.
It needs zip_code, lat and lon columns to work.
Latitude and Longitude need to be in decimal format.
The app precalculates distances to each zipcodes in the dataset and saves all to a mongodb database.
You go to http://localhost:8080/ZIPCODE/RANGE for example:
http://localhost:8080/28201/20
to get results.
To search for a specific zip code by city or town name, you can use:
http://localhost:8080/Berlin
You can pass settings as environment variables:
- DB_URL "mongodb://localhost:27017/"
- DB_DB "plzlocate"
- INPUT_DATA "data_setup/data.csv";
- MAX_DIST_KM 200
- FORCE_RECREATE false
Special thanks to https://gist.github.com/iteufel/af379872bbc3bf5261e2fd09b681ff7e for his zipcode dataset