Skip to content

Commit 74853d7

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add experiments param to endpoints for access to pre-GA features
feat: Add new `ImageryQuality` tier for allowing satellite-based Solar API results docs: Add more detailed descriptions for each `ImageryQuality` tier PiperOrigin-RevId: 795589896
1 parent 185c73c commit 74853d7

File tree

1 file changed

+31
-7
lines changed

1 file changed

+31
-7
lines changed

google/maps/solar/v1/solar_service.proto

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ service Solar {
3939
option (google.api.oauth_scopes) =
4040
"https://www.googleapis.com/auth/cloud-platform";
4141

42-
// Locates the closest building to a query point. Returns an error with
43-
// code `NOT_FOUND` if there are no buildings within approximately 50m of the
44-
// query point.
42+
// Locates the building whose centroid is closest to a query point. Returns an
43+
// error with code `NOT_FOUND` if there are no buildings within approximately
44+
// 50m of the query point.
4545
rpc FindClosestBuildingInsights(FindClosestBuildingInsightsRequest)
4646
returns (BuildingInsights) {
4747
option (google.api.http) = {
@@ -84,6 +84,9 @@ message FindClosestBuildingInsightsRequest {
8484
// is interpreted as the exact required quality and only `MEDIUM` quality
8585
// imagery is returned if `required_quality` is set to `MEDIUM`.
8686
bool exact_quality_required = 4 [(google.api.field_behavior) = OPTIONAL];
87+
88+
// Optional. Specifies the pre-GA features to enable.
89+
repeated Experiment experiments = 5 [(google.api.field_behavior) = OPTIONAL];
8790
}
8891

8992
// A bounding box in lat/lng coordinates.
@@ -99,7 +102,7 @@ message LatLngBox {
99102
// Information about the location, dimensions, and solar potential of a
100103
// building.
101104
message BuildingInsights {
102-
// The resource name for the building, of the format `building/<place ID>`.
105+
// The resource name for the building, of the format `buildings/{place_id}`.
103106
string name = 1;
104107

105108
// A point near the center of the building.
@@ -562,6 +565,9 @@ message GetDataLayersRequest {
562565
// is interpreted as the exact required quality and only `MEDIUM` quality
563566
// imagery is returned if `required_quality` is set to `MEDIUM`.
564567
bool exact_quality_required = 7 [(google.api.field_behavior) = OPTIONAL];
568+
569+
// Optional. Specifies the pre-GA experiments to enable.
570+
repeated Experiment experiments = 8 [(google.api.field_behavior) = OPTIONAL];
565571
}
566572

567573
// Information about the solar potential of a region. The actual data
@@ -682,14 +688,21 @@ enum ImageryQuality {
682688
// No quality is known.
683689
IMAGERY_QUALITY_UNSPECIFIED = 0;
684690

685-
// The underlying imagery and DSM data were processed at 0.1 m/pixel.
691+
// Solar data is derived from aerial imagery captured at low-altitude and
692+
// processed at 0.1 m/pixel.
686693
HIGH = 1;
687694

688-
// The underlying imagery and DSM data were processed at 0.25 m/pixel.
695+
// Solar data is derived from enhanced aerial imagery captured at
696+
// high-altitude and processed at 0.25 m/pixel.
689697
MEDIUM = 2;
690698

691-
// The underlying imagery and DSM data were processed at 0.5 m/pixel.
699+
// Solar data is derived from enhanced satellite imagery processed at 0.25
700+
// m/pixel.
692701
LOW = 3;
702+
703+
// Solar data is derived from enhanced satellite imagery processed at 0.25
704+
// m/pixel.
705+
BASE = 4;
693706
}
694707

695708
// The orientation of a solar panel. This must be interpreted relative to the
@@ -706,3 +719,14 @@ enum SolarPanelOrientation {
706719
// direction of the roof segment that it is placed on.
707720
PORTRAIT = 2;
708721
}
722+
723+
// Specifies pre-GA experiments that can be enabled in the API.
724+
enum Experiment {
725+
// No experiments are specified.
726+
EXPERIMENT_UNSPECIFIED = 0;
727+
728+
// Expands the geographic region available for querying solar data. For more
729+
// information, see [Expanded
730+
// Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage).
731+
EXPANDED_COVERAGE = 1;
732+
}

0 commit comments

Comments
 (0)