A collection of useful JSON files, filters, and helper scripts β mostly related to travel (airports, countries, etc.), with a few handy utility functions mixed in. I put this together for personal projects but figured it might be useful to others too.
airports-full.original.json
β Full global airport listairports-trimmed.commercial.json
β Trimmed list (just large & medium commercial airports with IATA codes)trim-airports.js
β Script to filter and simplify the full listget-airport-flag.js
β Adds a flag emoji to each airport based on country
country-phone-codes.original.json
β Country names, dial codes, and flag emojiscountry-emoji-map.generated.json
β Just the emoji lookup (code β emoji)validate-country-emojis.js
β Checks that the emoji generation function matches known flags
getFlagEmoji.ts
β Converts ISO country codes to flag emojis (πΊπΈ style)mergeByKey.ts
β Simple helper to join two arrays of objects on a shared keydebounce.ts
β Lightweight debounce function for input fields
This repo pulls together data from a few public sources and contributors who shared their JSON freely online. I'm sharing it in the same spirit β feel free to use, adapt, or remix anything here.
That said, I can't guarantee the original licenses of every dataset, so if you're using it for anything serious or public-facing, double-check the source data and attribution as needed.
Mostly just to save myself time. Now itβs all in one place β and if you find it useful too, awesome.