GithubHelp home page GithubHelp logo

vatpac-technology / vatsim-map Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 2.0 1.2 MB

Experimenting with the new VATSIM API to provide a generic FIR map for VATCCs.

Home Page: https://map.vatpac.org

License: Apache License 2.0

JavaScript 84.44% Dockerfile 0.35% HTML 15.10% Shell 0.11%
vatsim mapbox vatmap vatsim-map

vatsim-map's Introduction

VATSIM Map

Experimenting with the new VATSIM API to provide a generic FIR map for VATCCs.

Status

Extremely under cooked ...

Usage

Pilot map

The pilot map loads the VATSIM data feed, filters for pilots in the map.firs, then finally renders pilot positions on a map.

URL: /static/map.html

Accepts the following GET parameters.

Key Type Default Description
theme String (light | dark) light Sets the map theme.
lon Float 134.9 Sets the map center longitutde.
lat Float -28.2 Sets the map center latitude.
zoom Float 3 Sets the map center zoom.
dataApi String Developement - Load data from an alternative pilots API resource.

Sector map

The sector map loads a vatSys dataset defined by data.vatsys, parses the sectors and displays an overlay for map.sectors.standard as well as sub-sectors at a lower level zoom.

URL: /static/sectormap.html

Accepts the following GET parameters.

Key Type Default Description
lon Float 134.9 Sets the map center longitutde.
lat Float -28.2 Sets the map center latitude.
zoom Float 4.3 Sets the map center zoom.

Contributing

Dependencies

Running the map

  1. Checkout the code.
  2. npm -i
  3. npm run serve
  4. Open http://localhost:8080/

vatsim-map's People

Contributors

azfv avatar badvectors avatar kahn avatar samie11 avatar zachbf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zkgell badvectors

vatsim-map's Issues

Create flights API

Enable lookups by flight or per aerodrome.

flights/callsign

Returns a single pilot object filtered by callsign.

Example /flights/callsign/QFA-123

flights/departures

Returns many pilot objects for a given departure aerodrome.

Example /flights/departures/YSSY

flights/arrivals

Returns many pilot objects for a given arrival aerodrome.

Example /flights/arrivals/YMML

Altitude output bugs

A/F function is not working properly. Needs removing.
Sometimes floats appear very broken CRZ ALT: F220.00000000000003

Extend pilots API fields

The pilot API adds three new fields but they are not usefully implemented.

{ "aerodrome": false, "tag_alt": "A043", "tag_gs": "0" }

This test is connected at YHOT 4255 MSL. The aerodrome tag should show YHOT while tag_alt and tag_gs are not really useful by themselves.

Create a new set of tags and expand on current tags.

tag_alt

Formatted altitude string handling transition level changes. Only displayed when airborne so that we can fix the shitty inputs from some VATSIMers so that the following logic works.

    alt = string/100; // 33000 -> 330, 1000 -> 10, 340 -> 3.4
    if(alt <= 5){
        alt = alt * 100;
    }

25,000 ft = F250
10,000 ft = A100
9,500 ft = A095

Values: False, String

tag_gs

gs / 10 to match vatSys outputs.

Values: String

on_aerodrome

Values: False, or the ICAO code of the aerodrome polygon.

aerodrome_elevation

Values: False, or the on_aerodrome elevation AMSL.

phase

A map of flight phases.

  • Boarding
  • Departing
  • Enroute
  • Arriving
  • Disembarking

Boarding

on_aerodrome == flight_plan.departure
gs == 0

Departing

on_aerodrome == flight_plan.departure
gs > 0
altitude == aerodrome_elevation +/- 100

Enroute

on_aerodrome == false
gs > 0

Arriving

on_aerodrome == flight_plan.arrival
gs > 0

Disembarking

on_aerodrome == flight_plan.arrival
gs == 0

Hide aircraft at aerodromes from low zoom levels

Aircraft within an aerodrome shouldn't be displayed until the zoom level permits seeing aerodrome details to avoid cluttering the airborne map.

Stretch goal: Aircraft at an aerodrome should cause the map to render a single aerodrome icon with an ARRs/DEPs counter.

Oceanic sector issues

AIRAC 20211116 (2111c)
IND is rendering a multipoly
TSN FSS is not rendered at all

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.