openflights-geojson

parse and output openflights data

Usage no npm install needed!

<script type="module">
  import openflightsGeojson from 'https://cdn.skypack.dev/openflights-geojson';
</script>

README

openflights-geojson

Download and reformat OpenFlights.org data into GeoJSON.

Usage

$ npm install -g openflights-geojson

Download airport data, convert to GeoJSON, write to stdout.

Outputs a FeatureCollection of Feature objects with Point geometries.

$ openflights-airports > airports.geojson

Download airport & routes data, convert to GeoJSON, write to stdout.

Outputs a FeatureCollection of Feature objects with LineString geometries.

$ openflights-routes > routes.geojson