Skip to content

bernhardriegler/postboxElevation

Repository files navigation

Postbox Elevation (Austria)

Standalone Node.js + TypeScript script to find the highest Austrian postbox (by terrain elevation above sea level) using the elevation-api.eu API.

Files

  • allPostBoxes.json: Source dataset (Austrian postboxes)
  • getHighestPostBoxElevation.ts: Main script
  • postboxesByElevation.json: Final output (top 10 highest)

Prerequisites

  • Node.js 24+

Install

Run once in this folder:

cd C:\source\repos\BELLA\playground\postboxElevation
npm install

Run

From this folder:

npm run start

Run with custom arguments

node .\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 13678

Run from repo root

If you run from C:\source\repos\BELLA, use this exact command:

node .\playground\postboxElevation\getHighestPostBoxElevation.ts

Output

On success:

  • Console prints the highest postbox (key, address, elevation, coordinates)
  • Top 10 list is saved to postboxesByElevation.json

Notes

  • The script already includes retries and backoff for elevation-api.eu rate limits.
  • The source extraction query (reduced headers) is documented in getHighestPostBoxElevation.ts.

About

finds the highest postbox elevation in Austria

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors