Standalone Node.js + TypeScript script to find the highest Austrian postbox (by terrain elevation above sea level) using the elevation-api.eu API.
allPostBoxes.json: Source dataset (Austrian postboxes)getHighestPostBoxElevation.ts: Main scriptpostboxesByElevation.json: Final output (top 10 highest)
- Node.js 24+
Run once in this folder:
cd C:\source\repos\BELLA\playground\postboxElevation
npm installFrom this folder:
npm run startnode .\getHighestPostBoxElevation.ts <inputPath> <outputPath> [maxPostboxes]Examples:
# Quick test on first 100 entries
node .\getHighestPostBoxElevation.ts .\allPostBoxes.json .\postboxesByElevation.sample.json 100
# Full run over all active postboxes
node .\getHighestPostBoxElevation.ts .\allPostBoxes.json .\postboxesByElevation.json 13678If you run from C:\source\repos\BELLA, use this exact command:
node .\playground\postboxElevation\getHighestPostBoxElevation.tsOn success:
- Console prints the highest postbox (key, address, elevation, coordinates)
- Top 10 list is saved to
postboxesByElevation.json
- The script already includes retries and backoff for elevation-api.eu rate limits.
- The source extraction query (reduced headers) is documented in
getHighestPostBoxElevation.ts.