From 4af077754be1eefa891e26430b6eca5664eb7595 Mon Sep 17 00:00:00 2001 From: Betty Peng Date: Fri, 31 Oct 2025 12:25:59 -0400 Subject: [PATCH 1/2] Update solar.ts ImageryQuality LOW to BASE --- src/routes/solar.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/routes/solar.ts b/src/routes/solar.ts index 51c1d10..e14abed 100644 --- a/src/routes/solar.ts +++ b/src/routes/solar.ts @@ -24,7 +24,7 @@ export interface DataLayersResponse { annualFluxUrl: string; monthlyFluxUrl: string; hourlyShadeUrls: string[]; - imageryQuality: 'HIGH' | 'MEDIUM' | 'LOW'; + imageryQuality: 'HIGH' | 'MEDIUM' | 'BASE'; } export interface Bounds { @@ -46,7 +46,7 @@ export interface BuildingInsightsResponse { statisticalArea: string; regionCode: string; solarPotential: SolarPotential; - imageryQuality: 'HIGH' | 'MEDIUM' | 'LOW'; + imageryQuality: 'HIGH' | 'MEDIUM' | 'BASE'; } export interface SolarPotential { @@ -146,6 +146,8 @@ export async function findClosestBuilding( const args = { 'location.latitude': location.lat().toFixed(5), 'location.longitude': location.lng().toFixed(5), + // The Solar API always returns the highest quality imagery available. + required_quality: 'BASE', }; console.log('GET buildingInsights\n', args); const params = new URLSearchParams({ ...args, key: apiKey }); @@ -185,10 +187,10 @@ export async function getDataLayerUrls( radius_meters: radiusMeters.toString(), // The Solar API always returns the highest quality imagery available. // By default the API asks for HIGH quality, which means that HIGH quality isn't available, - // but there is an existing MEDIUM or LOW quality, it won't return anything. - // Here we ask for *at least* LOW quality, but if there's a higher quality available, + // but there is an existing MEDIUM or BASE quality, it won't return anything. + // Here we ask for *at least* BASE quality, but if there's a higher quality available, // the Solar API will return us the highest quality available. - required_quality: 'LOW', + required_quality: 'BASE', }; console.log('GET dataLayers\n', args); const params = new URLSearchParams({ ...args, key: apiKey }); From ca2a72d50ebaed68f74216026334f9978d83192c Mon Sep 17 00:00:00 2001 From: Betty Peng Date: Fri, 31 Oct 2025 12:52:50 -0400 Subject: [PATCH 2/2] Update DataLayersSection.svelte --- src/routes/sections/DataLayersSection.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/sections/DataLayersSection.svelte b/src/routes/sections/DataLayersSection.svelte index 50bfa23..1e57c74 100644 --- a/src/routes/sections/DataLayersSection.svelte +++ b/src/routes/sections/DataLayersSection.svelte @@ -77,7 +77,7 @@ let apiResponseDialog: MdDialog; let layerId: LayerId | 'none' = 'monthlyFlux'; let layer: Layer | undefined; - let imageryQuality: 'HIGH' | 'MEDIUM' | 'LOW'; + let imageryQuality: 'HIGH' | 'MEDIUM' | 'BASE'; let playAnimation = true; let tick = 0; @@ -250,9 +250,9 @@ {:else if imageryQuality == 'MEDIUM'}

AI augmented aerial imagery available.

Imagery and DSM data were processed at 25 cm/pixel.

- {:else if imageryQuality == 'LOW'} -

AI augmented aerial or satellite imagery available.

-

Imagery and DSM data were processed at 50 cm/pixel.

+ {:else if imageryQuality == 'BASE'} +

AI augmented satellite imagery available.

+

Imagery and DSM data were processed at 25 cm/pixel.

{/if}