The data/countries/ directory provides a minimal dataset of countries used to power both map-based and list-based components in the application. It merges geographic metadata with human-readable names to support UI interactions.


Purpose

This module is responsible for parsing and exposing a list of countries derived from the countries.geo.json file. It extracts:

This ensures consistent identification of countries across both the map (CountriesLayer) and UI controls like CountrySelector.


Contents

countries.geo.json

countries.ts


Output Format

Each entry in the exported countries array has the shape:

{
  code: 'BRA',       // ISO alpha-3 code (uppercase)
  name: 'Brazil'     // Common English name
}

Usage Examples

Used in: