Code Monkey home page Code Monkey logo

flugfeld's Introduction

WeGlide flugfeld

Tests

flugfeld

Maintained list of worldwide airfields with gliding activity with number of launches and link to OpenAIP.

This list is used internally at WeGlide to make airports appear on the map based on their 'importance' in the gliding world. We are syncing the number of flights from the airfields (uploaded on WeGlide) on a yearly basis.

Additionally, this repo contains all kinds of sectors/regions one might want to filter for. Contributions are always welcome!

OpenAIP Link

To link flugfeld to OpenAIP, you first need to register at OpenAIP and get a custom API client. Then you can download and parse the data

export X_OPENAIP_CLIENT_ID=your_client_id
python -m src.download

This command will use the existing mapping to WeGlide primary keys in pk_mapping.json and ignore new airports that are not present in this file. To also download new airports and assign new IDs, run

export X_OPENAIP_CLIENT_ID=your_client_id
python -m src.download --new

Contributing

Missing airfield

If you find an airfield with gliding activity missing, there are two steps.

  • make sure it is available on OpenAIP - if not, you can add it there
  • add the missing row and open a pull request

Airfield not in administrative region

OpenAIP does not provide administrative regions. All airfields that are not in this list (For example EDDF) only belong to a country, not to a particular region. If there is in fact gliding activity on this airfield, you can add it here.

Number of launches

The provided number of launches is used as an indicator as to when airports appear on the map. If you add a new airfield, you may add a reasonable number. Number of launches is only important in comparison with near by airfields, as we compute a 'reign' parameter.

Naming

Naming of the gliding sites is following local conventions, so if you spot an error, please open a pull request.

Missing

Areas with missing information include:

  • Russia
  • South America
  • Japan

This in parts due to airport information missing on OpenAIP

Sectors

The sectors.json file describes all sectors that do not match administrative regions. You may add relevant sectors of your choice. Just copy and paste the content of the file here or look at the GitHub preview to get an overview of already existing sectors.

Order of languages is German, English, French, Dutch, Czech, Italian, Polish.

Multi Regions

Multi regions are filters that combine multiple regions or countries. You may add relevant multi regions of your choice. Multi regions can contain both, countries and regions.

Tiles

To render mbtiles from geojson, we suggest using tippecanoe. Install on OS X with

git clone https://github.com/felt/tippecanoe.git
cd tippecanoe
make -j
make install

Then, to render the tiles

tippecanoe -Z3 -z14 -f -r1 -pk -pf -y id -y openaip_id -y name -y reign -y elevation -y runway_rotation -y lng -y lat -y radio_frequency -y radio_description -J airport_filter.json -o airport.pmtiles airport.geojson

To have a look at the tiles, run the code below and open localhost:8080 in your browser.

docker run --rm -it -v $(pwd):/data -p 8080:80 maptiler/tileserver-gl

flugfeld's People

Contributors

carstenson avatar deltafox44 avatar flyingjoe avatar frantzheld avatar moldhouse avatar samuel-git avatar sbrodehl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flugfeld's Issues

Segelflugstarts EDRK massiv unterschätzt

Ich weiß nicht, wie es zu der geringen angezeigten Anzahl an Starts in Koblenz kam, aber die sind mit 461 (2019: 238) definitiv viel zu gering. Sieht ja so aus, als ob bei uns am Platz nicht's los wäre :D

Hier mal die richtigen Zahlen:

Segelflugstarts EDRK 2019
2019: 1829 Segelflugstarts

Segelflugstarts EDRK 2020
2020: 1801 Segelflugstarts

Wenn Zeit dafür ist, wäre es schön, wenn das auf ein einigermaßen realistisches Niveau angehoben wird :)

Use runway designator instead of direction for name

Werdohl has a runway designator of 07/25, eventhough the runway direction is 64 degree. Hence, we should not round, but rather use the designator from openaip for display in the tiles.

migration:

  1. Add the designator in the backend to the tiles
  2. Switch copilot from runway direction to designator

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.