A small live model of Humberto Delgado Airport in Lisbon (LPPT). You see real planes land, taxi, park and take off on a drawn map. The weather and the time of day are real too.
It runs at https://lppt.live.
The idea comes from TinySFO, but Live LPPT was built from scratch.
- The airport and the city around it, drawn at an angle, with hills and buildings that have height.
- Live planes, drawn to scale in their airline's colours. Click one to see its flight, route, type and speed, and to follow it.
- The airport's own vehicles that carry a transponder, on the apron where the feed puts them.
- The current wind, weather and the runway in use. At night the map gets dark and the runway and taxiway lights come on.
- Drawings of Lisbon's landmarks, the Expo 98 buildings, the hospital and universities, and the airport's terminals, hangars, car parks and tower.
- Trees in the streets, parks and woods.
- Made-up cars on the main roads, busier at Lisbon's rush hours. On the motorways and main roads they slow down and queue where the real traffic does.
- CP and Fertagus trains, estimated from the timetables, and the Metro's trains, placed from the Metro's waiting times.
The L key shows the names of places, buildings and stations. The page is in English, or in European Portuguese when the browser lists Portuguese before English. Do not use this for navigation.
You need Node 22 or newer. The app has no dependencies.
npm start
Then open http://localhost:8020. Run the tests with npm test.
- Running it: on your computer, the tests, Cloudflare, keys and address options
- How the code is laid out
- The live data: the server's API, the data services and the airport's vehicles
- The feeder: how the planes reach the site on Cloudflare
- The map: building the map, landmarks, airport buildings and stations
- The trees
- The cars
- The trains
- The Metro
The page has the same list, under "Acknowledgements" in the side panel.
- Plane positions: adsb.fi. It allows its data for personal, non-commercial use. adsb.lol (ODbL) is the backup.
- Routes and plane details: adsbdb.
- Metro waiting times: Metropolitano de Lisboa, through its
EstadoServicoMLAPI. - Road traffic: HERE, through its Traffic API.
- Weather and METAR: aviationweather.gov, from the Aviation Weather Center of NOAA in the United States.
- Day and night: the page works out where the sun is. It uses the short formulas of the Astronomical Almanac.
- Map: © OpenStreetMap contributors, under the ODbL. The script downloads it through the Overpass API. The buildings, the roads with their lanes and speed limits, the railways, the stations, the airfield and the mapped trees all come from it.
- Ground heights: Mapzen Terrain Tiles on AWS (full credits). For this area: Europe terrain data produced using Copernicus data and information funded by the European Union (EU-DEM layers); SRTM and GMTED2010 terrain data courtesy of the U.S. Geological Survey; global ETOPO1 terrain data from the U.S. National Oceanic and Atmospheric Administration.
- Plane sizes: the real wingspan and length of each type of plane.
- The trains are estimated from the usual timetables of CP and Fertagus. Nobody tracks them, so a late or cancelled train still shows on time.
- The Metro's trains are placed from the waiting times the Metro gives, so a train is where those times say it should be, not where a sensor saw it. Between two stations its place is an estimate.
- The cars on the roads are made up. On the motorways and main roads, how many there are and how fast they go follow the traffic HERE measured in the last 15 minutes. On the streets, and everywhere when HERE gives nothing, they follow the usual traffic in Lisbon for the hour.
- Most trees in parks and woods are made up. So are the cars in the car parks and the equipment on the terminal roofs.
- If OpenStreetMap has no height for a building, the height is a guess from the kind of building and its size.
- The landmarks, the airport buildings and the stations are drawings made for this site. They stand where the real buildings stand, but the details are not exact.
- The planes have a few simple shapes. Their colours are a simple version of their airline's colours.
- The hills are drawn 1.6 times taller than they are, so you can see them.
- The logo is a simple drawing after the coat of arms of Lisbon: a ship with two ravens.
The idea comes from TinySFO, which does the same for San Francisco. Live LPPT was built from scratch, with its own code and drawings.
Live LPPT is made by Fabio Oliveira. The code is on GitHub. It is under the European Union Public Licence 1.2 (EUPL-1.2).
The map file public/data/airport.json is made from OpenStreetMap data, so it stays under the ODbL.