mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
Traffic roads come from OpenFreeMap vector tiles, or TomTom flow tiles with a key (Hybrid by default). Military areas use OpenFreeMap polygons with a bundled worldwide name index; wide views show named points. ALPR reads an hourly OpenStreetMap extract. Cockpit place context and country, state and US county outlines use bundled Natural Earth and US Census data. Overpass is used only when an operator configures their own endpoint. Also: camera arrivals no longer land below ground, keyless terrain retries on 429, bounded relation geometry for configured Overpass, one shared OpenStreetMap credit, and separate tile and API transports for embedders. Co-authored-by: theGaryLarson <[email protected]> Co-authored-by: Milan Khanal <[email protected]>
12 lines
491 B
SQL
12 lines
491 B
SQL
SELECT names.primary AS name, bbox, sources,
|
|
source_tags['military'] AS military,
|
|
ST_X(ST_PointOnSurface(geometry)) AS lon,
|
|
ST_Y(ST_PointOnSurface(geometry)) AS lat,
|
|
ST_Area_Spheroid(geometry) AS area
|
|
FROM read_parquet(?)
|
|
WHERE subtype = 'military'
|
|
AND nullif(trim(names.primary), '') IS NOT NULL
|
|
AND (source_tags['landuse'] = 'military'
|
|
OR source_tags['military'] IN
|
|
('airfield', 'naval_base', 'range', 'barracks', 'base', 'training_area'))
|