rogalmic / flight-planner

Interactive VFR flight planning online.

Home Page:https://rogalmic.github.io/flight-planner/flight.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VFR Flight Planner

Flight planner

Click below to try:

------------------> TRY ONLINE <------------------

Features

  • Flight planning with wind and magnetic declination correction with great circle path for longer routes
  • Output in km/h, km or nm, kts, input via selection of value (both unit systems shown)
    Input units
  • Background map png tiles in EPSG:3857 format, like from https://www.openflightmaps.org/ (possibility to download ~1GB zip with tiles for given region, then paste slippyTiles_original.zip\original\merged\256\latest contents to local ./tiles folder)
    • Default remote tiles from https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png, possibility to change via ?remote_tile_url={url1}&remote_tile_url={url2}&...
      OSM remote tiles
    • Default local tiles from ./tiles/{z}/{x}/{y}.png, possibility to change via ?local_tile_url=...
      Custom local tiles
    • Possibility to switch between background maps during planning route
    • Remote maps work out-of-the-box, while local maps require setup
  • Open METAR and TAF for given route in separate page ([https://aviationweather.gov/adds/]), follows great circle path
  • Open ADSB history based on ICAO transponder code (adsbexchange service)
  • Remember last path
  • Export plan to CSV file for further adjustments in external tools

Reference

URL search parameters

  • remote_tile_url - remote tile source url(s) with z,x,y coordinates embedded, like https://site.org/{z}/{x}/{y}.png, defaults to https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png
  • local_tile_url - local tile source url(s) with z,x,y coordinates embedded, like https://site.org/{z}/{x}/{y}.png, default for local execution - file:/// site scheme, defaults to ./tiles/{z}/{x}/{y}.png
  • log_units - the result CSV output units, metric (km/h, km) or nautical (kt, nm)
  • z - the initial EPSG:3857 zoom level, defaults to 5
  • lon - initial map's center longitude, defaults to 16.5238
  • lat - initial map's center latitude, defaults to 51.8320

Local vs remote tiles concept

The assumption is that local tiles, by default located in ./tiles next to the html file, can be used as alternative background map layer. User can download the offline version from https://github.com/rogalmic/flight-planner/releases , which contains some tiles up to zoom level 6, then add more zoom levels for specific location from any source. This way planning can be done in offline scenario. User can also set 2 different urls for local/remote tiles, then switch then during planning (topography vs airspace).

Weather info

Since this project goal is to be simple calculation helper, the wind is set manually. However once route is set, there is a way to query METARs and TAFs for given route. User needs to manually read the weather info and input wind direction and speed.

Samples

Objectives

  • as simple as possible with interaction options at every step, nothing purely automatic
  • based on OSM, but with possibility to change to different source
  • remember offline data in tiles folder, see https://github.com/hdjarv/osm-tile-downloader, offline deliverable built in travis

Requirements

  • recent browser with support for HTML5 and ECMAScript 2015

Dev Requirements

  • Really easy, just try :)
  • Visual Studio Code
  • Git
  1. Get repo

    git clone "https://github.com/rogalmic/flight-planner.git"
    code "./flight-planner/"
  2. Select debug option (chrome or firefox)

  3. Run debug session

  4. Optionally load tiles in proper folder structure to ./tiles/{z}/{x}/{y}.png (EPSG:3857 format)

About

Interactive VFR flight planning online.

https://rogalmic.github.io/flight-planner/flight.html

License:MIT License


Languages

Language:HTML 59.3%Language:JavaScript 24.4%Language:CSS 16.3%