<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">On-premises or any cloud edition v1.15</button>

- [SAP BTP edition v1.1](https://docs.cloud.google.com/sap/docs/abap-sdk/btp/latest/reference/googcl_solar_v1)
- [On-premises or any cloud edition v1.15](https://docs.cloud.google.com/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/reference/googcl_solar_v1.md.txt)

## Class

```abap
/GOOG/CL_SOLAR_V1
```

- Inheriting from:`/GOOG/CL_HTTP_CLIENT`
- Description:`Solar API v1`

For general information about a class in ABAP SDK for Google Cloud, see [API client stub](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#client_stub).

## Types

| Type | Description | Visibility |
|---|---|---|
| `TY_001` | `BuildingInsights` | PUBLIC |
| `TY_002` | `CashPurchaseSavings` | PUBLIC |
| `TY_003` | `DataLayers` | PUBLIC |
| `TY_004` | `Date` | PUBLIC |
| `TY_005` | `FinancedPurchaseSavings` | PUBLIC |
| `TY_006` | `FinancialAnalysis` | PUBLIC |
| `TY_007` | `FinancialDetails` | PUBLIC |
| `TY_008` | `HttpBody` | PUBLIC |
| `TY_009` | `LatLng` | PUBLIC |
| `TY_010` | `LatLngBox` | PUBLIC |
| `TY_011` | `LeasingSavings` | PUBLIC |
| `TY_012` | `Money` | PUBLIC |
| `TY_013` | `RoofSegmentSizeAndSunshineStats` | PUBLIC |
| `TY_014` | `RoofSegmentSummary` | PUBLIC |
| `TY_015` | `SavingsOverTime` | PUBLIC |
| `TY_016` | `SizeAndSunshineStats` | PUBLIC |
| `TY_017` | `SolarPanel` | PUBLIC |
| `TY_018` | `SolarPanelConfig` | PUBLIC |
| `TY_019` | `SolarPotential` | PUBLIC |
| `TY_T_006` | `FinancialAnalysis` | PUBLIC |
| `TY_T_013` | `RoofSegmentSizeAndSunshineStats` | PUBLIC |
| `TY_T_014` | `RoofSegmentSummary` | PUBLIC |
| `TY_T_017` | `SolarPanel` | PUBLIC |
| `TY_T_018` | `SolarPanelConfig` | PUBLIC |
| `TY_T_STRING` | `Table of Strings` | PUBLIC |
| `TYT/GOOG/NUM_FLOAT` |   | PUBLIC |

## Constants

| Name | Type | Description | Value | Visibility |
|---|---|---|---|---|
| `C_SUPPORTED_AUTH` | `/GOOG/SUPP_AUTH` | Supported Auth Types | IJIJWW | PUBLIC |
| `C_SERVICE_NAME` | `/GOOG/SERVICE_NAME` | Google Service Name | solar:v1 | PUBLIC |
| `C_ROOT_URL` | `STRING` | API Root URL | https://solar.googleapis.com | PUBLIC |
| `C_REVISION_DATE` | `DATUM` | Discovery Document revision Date | 20250309 | PUBLIC |
| `C_PATH_PREFIX` | `STRING` | API Path Prefix |   | PUBLIC |
| `C_ON_PREM_VERSION` | `/GOOG/SDK_VERSION` | Lowest On-premises Version | 1.10 | PUBLIC |
| `C_CLOUD_VERSION` | `/GOOG/SDK_VERSION` | Lowest Cloud Version |   | PUBLIC |

## Methods

For general information about a method in ABAP SDK for Google Cloud, see [API method](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#api_method).

### CONSTRUCTOR

- Description: Constructor
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_KEY_NAME` | IMPORTING | `/GOOG/KEYNAME` | Google Cloud Key Name |
| `IV_LOG_OBJ` | IMPORTING | `BALOBJ_D` | Application log: Object name (Application code) |
| `IV_LOG_SUBOBJ` | IMPORTING | `BALSUBOBJ` | Application Log: Subobject |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### FIND_CLOSEST_BUILDING_INSIG

- Description: solar.buildingInsights.findClosest
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_EXPERIMENTS` | IMPORTING | `STRING` | experiments |
| `IV_Q_LOCATIONLATITUDE` | IMPORTING | `STRING` | location.latitude |
| `IV_Q_LOCATIONLONGITUDE` | IMPORTING | `STRING` | location.longitude |
| `IV_Q_REQUIREDQUALITY` | IMPORTING | `STRING` | requiredQuality |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_001` | BuildingInsights |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### GET_DATA_LAYERS

- Description: solar.dataLayers.get
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_EXACTQUALITYREQUIRED` | IMPORTING | `STRING` | exactQualityRequired |
| `IV_Q_EXPERIMENTS` | IMPORTING | `STRING` | experiments |
| `IV_Q_LOCATIONLATITUDE` | IMPORTING | `STRING` | location.latitude |
| `IV_Q_LOCATIONLONGITUDE` | IMPORTING | `STRING` | location.longitude |
| `IV_Q_PIXELSIZEMETERS` | IMPORTING | `STRING` | pixelSizeMeters |
| `IV_Q_RADIUSMETERS` | IMPORTING | `STRING` | radiusMeters |
| `IV_Q_REQUIREDQUALITY` | IMPORTING | `STRING` | requiredQuality |
| `IV_Q_VIEW` | IMPORTING | `STRING` | view |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_003` | DataLayers |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### GET_GEO_TIFF

- Description: solar.geoTiff.get
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_ID` | IMPORTING | `STRING` | id |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_008` | HttpBody |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### CLOSE

- Description: Close Connection
- Visibility: PUBLIC