trackberry-airports 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +7 -0
- data/data/airports.csv +9053 -9053
- data/lib/trackberry/airports/builder.rb +48 -5
- data/lib/trackberry/airports/short_name.rb +48 -0
- data/lib/trackberry/airports/version.rb +1 -1
- data/lib/trackberry/airports.rb +21 -2
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c0017569719cbed6e8d2f6658d40bf4a18fd057a1c91055a43af6c27b7b32d4
|
|
4
|
+
data.tar.gz: 448bcb978ddaf04e3069aa817a43fcf4f7470fe74941e41bbdecc99b78d45555
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba720a5c80a58c6425f1b3359169f8a2caa5052bbfad56d2e8aaecab33471cbbae068e66e460812167d5d75a9f56de253db2839e3f9f7e930cad75299334a070
|
|
7
|
+
data.tar.gz: '09660fd03509a1bf1c84b4f5f5c72730f30ff73f698d799c3d8ed57895ac77a322083aa42a029f03678c282f7c6c1c62f56d4c6f43b894bf45fdb2d252262f43'
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Data refreshes are minor versions, opened as pull requests by the monthly refresh workflow. Code changes are written here by hand.
|
|
4
4
|
|
|
5
|
+
## 0.3.0 — 2026-11-08
|
|
6
|
+
|
|
7
|
+
Added `Trackberry::Airports.short_name(iata)`: a compact label such as "London Heathrow" or "Lima Jorge Chávez", built into a new `short_name` column of the table, with nine reviewed overrides in `data/sources/short_name_overrides.csv`. No existing method or `Airport` field changed.
|
|
8
|
+
|
|
5
9
|
## 0.2.0 — 2026-11-03
|
|
6
10
|
|
|
7
11
|
OurAirports as of 2026-11-03. 9052 airports (9051 before): 2 added, 1 removed, 3 renamed, 0 with a new city, 7 repositioned, 0 with a new subdivision (0 moved to another principal one).
|
data/README.md
CHANGED
|
@@ -7,6 +7,7 @@ require "trackberry/airports"
|
|
|
7
7
|
|
|
8
8
|
Trackberry::Airports.find("FRA") # => #<data Trackberry::Airports::Airport iata="FRA", icao="EDDF", ...>
|
|
9
9
|
Trackberry::Airports.city("FRA") # => "Frankfurt"
|
|
10
|
+
Trackberry::Airports.short_name("LIM") # => "Lima Jorge Chávez"
|
|
10
11
|
Trackberry::Airports.country("FRA") # => "DE"
|
|
11
12
|
Trackberry::Airports.coordinates("FRA") # => { "lat" => 50.0267, "lng" => 8.5584 }
|
|
12
13
|
Trackberry::Airports.subdivision_path("SXB") # => ["FR-67", "FR-6AE", "FR-GES"]
|
|
@@ -57,6 +58,12 @@ The served city comes from [OpenFlights](https://openflights.org/data) for the 6
|
|
|
57
58
|
|
|
58
59
|
The subdivision always follows where the airport is, not the city it serves: Cincinnati's airport is in Kentucky (`US-KY`), not Ohio.
|
|
59
60
|
|
|
61
|
+
## Short names
|
|
62
|
+
|
|
63
|
+
`short_name` is the label to show beside a code when the city alone is not enough ("London" is five airports): "London Heathrow", "Lima Jorge Chávez", "Dubai". It is the airport's name without "Airport", "International" and their translations, with the city put in front when what is left does not already say it (compared without accents or case).
|
|
64
|
+
|
|
65
|
+
Where that reads badly (an official name that runs to eight words, a repeated word, a dotted İ), a reviewed label wins: `data/sources/short_name_overrides.csv`, as `iata,short_name,note`. Like the subdivision overrides it is a build input, not shipped; the label is built into the `short_name` column of the table, so a monthly refresh keeps it. Each refresh lists the rows whose airport has gone or that the rule now labels the same, so they can be removed. An unknown code answers `nil`.
|
|
66
|
+
|
|
60
67
|
## Data
|
|
61
68
|
|
|
62
69
|
[OurAirports](https://ourairports.com/data/) (public domain), filtered to airports with an IATA code that are not closed. When two rows share a code, the one with scheduled flights wins, then the larger airport. Coordinates are rounded to four decimal places (about ten metres).
|