diff --git a/backend/app/plan/router.py b/backend/app/plan/router.py index e8543930..8ae57c92 100644 --- a/backend/app/plan/router.py +++ b/backend/app/plan/router.py @@ -516,8 +516,6 @@ async def trigger_plan(body: PlanTriggerRequest): # TODO: If a property is semi-detached, we might get roof surfaces for the main building + the neighbour # TODO: If we can't get high image quality, should we use the solar API? Maybe just for semi-detached units with # extensions, since it doesn't seem to do a great job - # TODO: For simple properties, we should do a comparison/check between the solar API's roof area and the - # basic estimate of roof area building_solar_config, unit_solar_config = GoogleSolarApi.prepare_input_data( input_properties=input_properties, @@ -532,6 +530,14 @@ async def trigger_plan(body: PlanTriggerRequest): google_solar_api_key=get_settings().GOOGLE_SOLAR_API_KEY ) + input_properties = GoogleSolarApi.unit_solar_analysis( + unit_solar_config=unit_solar_config, + input_properties=input_properties, + session=session, + body=body, + google_solar_api_key=get_settings().GOOGLE_SOLAR_API_KEY + ) + logger.info("Identifying property recommendations") recommendations = {} recommendations_scoring_data = []