Home

Awesome

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

Interpolate flight paths with a great circle arc algorithm (springmeyer/arc.

$ openflights-airports --arc > 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