fix(osm): stop using public Overpass by default (#648) (#742)

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]>
This commit is contained in:
authored and GitHub committed 2026-09-28 19:07:57 -05:00
1 parent 81eb44340d
commit f4fcf267c6
200 files changed
+26665 -1977

No files matched your search

+47
View File
@@ -598,3 +598,50 @@ test('search without an authority hook preserves the existing caller contract',
assert.equal(result.navigationMode, 'city-overview');
assert.equal(viewer.flights.length, 1);
});
test('a precise search without an outline frames against the resolved ground, not sea level', async () => {
// Camp Mabry field report: with no detailed outline (no configured Overpass)
// framing used the 250 m landmark range from a sea-level target, and the eye
// landed about 1 m above the 171 m mesh. The ground service now anchors it.
const viewer = stubViewer();
const resolved = [];
const warmed = [];
const ground = {
async resolveGroundFloorCellsBounded(points) {
resolved.push(...points);
},
cachedGroundFloor: () => 171,
warmGroundFloor: (points) => warmed.push(...points),
};
const result = await runSearch(
viewer,
{
ground,
features: {
getFocusFootprints: async () => ({
unavailable: true,
retryable: false,
code: 'OVERPASS_NOT_CONFIGURED',
}),
},
recoverNearView: async () => null,
},
{
query: 'Camp Mabry',
result: {
formatted_address: 'Camp Mabry, Austin, TX',
types: ['point_of_interest', 'establishment'],
geometry: { location: { lat: 30.3125, lng: -97.765 } },
},
},
);
assert.equal(result.navigationMode, 'precise-place');
assert.equal(result.outlineUnavailable, true);
assert.equal(resolved.length, 1);
assert.equal(warmed.length, 1);
const flight = viewer.flights[0];
const target = Cesium.Cartographic.fromCartesian(flight.sphere.center);
assert.ok(Math.abs(target.height - (171 + 30)) < 0.5, `target ${target.height}`);
const eye = target.height + flight.offset.range * Math.sin(-flight.offset.pitch);
assert.ok(eye > 171 + 100, `eye ${eye} must clear the 171 m surface`);
});