Algeria Civil Airports
@geoalgeria/aviation
36 civil airports with official names, ICAO and IATA codes, addresses, phone numbers, websites, and geographic coordinates.
Source: ANAC (anac.dz) + OurAirports
Install
npm install @geoalgeria/aviationQuick example
import aviation from "@geoalgeria/aviation";
const all = aviation.airports(); // 36 airports
const algiers = aviation.airportByIcao("DAAG"); // Houari Boumediene
const tlemcen = aviation.airportByIata("TLM"); // by IATA, for flight feeds
const inOran = aviation.airportsByWilaya(31);API reference
| Name | Signature | Description |
|---|---|---|
airports | airports(): Airport[] | All 36 civil airports. |
airportByIcao | airportByIcao(code: string): Airport | null | One airport by ICAO code (case-insensitive). |
airportByIata | airportByIata(code: string): Airport | null | One airport by IATA code (case-insensitive). |
airportsByWilaya | airportsByWilaya(code: string | number): Airport[] | Airports in a wilaya (accepts "16", 16, or "01"). |
routes | routes(): Route[] | Nonstop routes that are flying, seasonal, suspended or of unclear cadence. Excludes announced-but-not-yet-operating ones. |
plannedRoutes | plannedRoutes(): Route[] | Announced but not yet operating routes, kept separate so an announcement is never counted as a served destination. |
routeEndpoints | routeEndpoints(): RouteEndpoint[] | Both ends of every route, including the foreign airports. |
routesFrom | routesFrom(code: string): Route[] | Routes departing an airport, by IATA code (case-insensitive). Directional: departures only. |
metadata | metadata(): Metadata | Dataset metadata (counts, source, generated_at). |
Record shape
| Field | Type | Nullable | Description |
|---|---|---|---|
id | string | no | ICAO code, lowercased (e.g. "daag"). |
name | string | no | Official airport name in French. |
wilaya_code | string | no | Wilaya code, zero-padded to 2 digits ("01"-"69"). |
commune_code | null | no | Always null (airports carry no commune code). |
commune | null | no | Always null (airports carry no commune). |
lat | number | no | Latitude (WGS84). |
lng | number | no | Longitude (WGS84). |
geo_precision | "exact" | no | Coordinates are exact points. |
geo_method | GeoMethod | no | How the coordinates were derived. |
source | "anac" | "ourairports" | no | Origin: ANAC, or OurAirports for the three airports ANAC omits. |
refs | Refs | no | External identifiers (ICAO, IATA). |
icao | string | no | ICAO (OACI) code (e.g. "DAAG"). |
iata | string | yes | IATA code. Populated on all 36 records; typed nullable so a future airport without one is not a breaking change. |
address | string | yes | Postal address as listed by ANAC. Null on the three OurAirports records, which have no contact fields upstream. |
phone | string | yes | Contact phone. |
website | string | yes | Official website URL. Null on the three OurAirports records. |
Formats
JSONCSVGEOJSONTS
The npm package ships JSON. Other formats are available in each GitHub Release.