mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +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]>
This commit is contained in:
200 files changed
+26665
-1977
No files matched your search
@@ -227,13 +227,14 @@ test('routing middleware uses configured OSRM servers while retaining request bo
|
||||
assert.equal(calls, 1);
|
||||
});
|
||||
|
||||
test('regional reverse geocoding uses the configured Nominatim endpoint and projection', async () => {
|
||||
const lookup = createRegionalPlaceProvider({
|
||||
endpoint: 'https://places.example/reverse',
|
||||
requestJson: async (url) => {
|
||||
assert.equal(new URL(url).origin, 'https://places.example');
|
||||
return { address: { city: 'Town', country: 'Country' } };
|
||||
},
|
||||
test('regional place lookup uses bundled Natural Earth with networking unavailable', async (t) => {
|
||||
t.mock.method(globalThis, 'fetch', () => {
|
||||
throw new Error('Network forbidden');
|
||||
});
|
||||
assert.equal((await lookup(point)).locality, 'Town');
|
||||
const lookup = createRegionalPlaceProvider();
|
||||
assert.equal(
|
||||
(await lookup({ latitude: 30.2672, longitude: -97.7431 })).region,
|
||||
'Edwards Plateau',
|
||||
);
|
||||
assert.equal((await lookup({ latitude: 26, longitude: -90 })).kind, 'marine');
|
||||
});
|
||||
Reference in new issue
Block a user