Method: dataLayers.get
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
รับข้อมูลเกี่ยวกับพลังงานแสงอาทิตย์ของภูมิภาครอบๆ สถานที่ตั้ง แสดงข้อผิดพลาดที่มีรหัส NOT_FOUND
หากตำแหน่งอยู่นอกพื้นที่ให้บริการ
คำขอ HTTP
GET https://solar.googleapis.com/v1/dataLayers:get
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์การค้นหา
พารามิเตอร์ |
location |
object (LatLng )
ต้องระบุ ลองจิจูดและละติจูดของศูนย์กลางภูมิภาคที่จะรับข้อมูล
|
radiusMeters |
number
ต้องระบุ รัศมี (หน่วยเป็นเมตร) ที่กําหนดขอบเขตพื้นที่รอบจุดศูนย์กลางที่ควรแสดงข้อมูล ข้อจํากัดของค่านี้คือ
- คุณสามารถระบุค่าใดก็ได้สูงสุด 100 ล้าน
- คุณสามารถระบุค่าที่มากกว่า 100 เมตรได้ ตราบใดที่
radiusMeters <= pixelSizeMeters * 1000
- อย่างไรก็ตาม สำหรับค่าที่มากกว่า 175 เมตร
DataLayerView ในคำขอต้องไม่รวมฟลักซ์รายเดือนหรือร่มเงารายชั่วโมง
|
view |
enum (DataLayerView )
ไม่บังคับ ชุดข้อมูลย่อยที่ต้องการแสดงผล
|
requiredQuality |
enum (ImageryQuality )
ไม่บังคับ ระดับคุณภาพขั้นต่ำที่อนุญาตในผลการค้นหา ระบบจะไม่แสดงผลลัพธ์ที่มีคุณภาพต่ำกว่านี้ การไม่ระบุค่านี้เทียบเท่ากับการจำกัดคุณภาพไว้ที่สูงเท่านั้น
|
pixelSizeMeters |
number
ไม่บังคับ มาตราส่วนขั้นต่ำของข้อมูลที่จะแสดงผลเป็นเมตรต่อพิกเซล ระบบรองรับค่า 0.1 (ค่าเริ่มต้น หากไม่ได้ตั้งค่าช่องนี้อย่างชัดแจ้ง), 0.25, 0.5 และ 1.0 ระบบจะแสดงผลคอมโพเนนต์ภาพที่มีความละเอียดปกติน้อยกว่า pixelSizeMeters ที่ความละเอียดที่ระบุโดย pixelSizeMeters ส่วนคอมโพเนนต์ภาพที่มีความละเอียดปกติเท่ากับหรือมากกว่า pixelSizeMeters จะแสดงผลที่ความละเอียดปกตินั้น
|
exactQualityRequired |
boolean
ไม่บังคับ กำหนดคุณภาพของภาพให้ตรงกันทุกประการหรือไม่ หากตั้งค่าเป็นเท็จ ระบบจะตีความช่อง requiredQuality เป็นคุณภาพขั้นต่ำที่ต้องการ เช่น ระบบอาจแสดงภาพคุณภาพสูงเมื่อตั้งค่า requiredQuality เป็นปานกลาง หากตั้งค่าเป็น "จริง" ระบบจะตีความ requiredQuality เป็นคุณภาพที่ต้องการอย่างเจาะจง และระบบจะแสดงเฉพาะภาพคุณภาพ MEDIUM หากตั้งค่า requiredQuality เป็น MEDIUM
|
experiments[] |
enum (Experiment )
ไม่บังคับ ระบุการทดสอบเวอร์ชันก่อน GA ที่จะเปิดใช้
|
เนื้อความของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ DataLayers
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/cloud-platform
DataLayerView
ชุดข้อมูลย่อยของข้อมูลดวงอาทิตย์ที่จะแสดง
Enum |
DATA_LAYER_VIEW_UNSPECIFIED |
เทียบเท่ากับ FULL |
DSM_LAYER |
รับ DSM เท่านั้น |
IMAGERY_LAYERS |
รับ DSM, RGB และมาสก์ |
IMAGERY_AND_ANNUAL_FLUX_LAYERS |
รับ DSM, RGB, มาสก์ และฟลักซ์รายปี |
IMAGERY_AND_ALL_FLUX_LAYERS |
ดู DSM, RGB, มาสก์, ฟลักซ์รายปี และฟลักซ์รายเดือน |
FULL_LAYERS |
รับข้อมูลทั้งหมด |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[[["\u003cp\u003eRetrieves solar information for a specified region using latitude, longitude, and radius.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of data retrieval with parameters like \u003ccode\u003eview\u003c/code\u003e, \u003ccode\u003erequiredQuality\u003c/code\u003e, \u003ccode\u003epixelSizeMeters\u003c/code\u003e, and \u003ccode\u003eexactQualityRequired\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eReturns an error if the location is outside the coverage area or if radius exceeds limitations.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eResponse includes a \u003ccode\u003eDataLayers\u003c/code\u003e object containing the requested solar data subset if successful.\u003c/p\u003e\n"]]],["This content details how to retrieve solar information for a specific region via a `GET` request to `https://solar.googleapis.com/v1/dataLayers:get`. The request requires parameters like `location` (latitude/longitude), `radiusMeters`, and optional parameters including `view`, `requiredQuality`, `pixelSizeMeters` and `exactQualityRequired`. The body is empty and a successful response will provide solar data via `DataLayers`. Specific authorization scope `https://www.googleapis.com/auth/cloud-platform` is required. `DataLayerView` allows one to define the solar information subset to be retrieved.\n"],null,["# Method: dataLayers.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [DataLayerView](#DataLayerView)\n- [Try it!](#try-it)\n\nGets solar information for a region surrounding a location. Returns an error with code `NOT_FOUND` if the location is outside the coverage area.\n\n### HTTP request\n\n`GET https://solar.googleapis.com/v1/dataLayers:get`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `location` | `object (`[LatLng](/maps/documentation/solar/reference/rest/v1/LatLng)`)` Required. The longitude and latitude for the center of the region to get data for. |\n| `radiusMeters` | `number` Required. The radius, in meters, defining the region surrounding that centre point for which data should be returned. The limitations on this value are: - Any value up to 100m can always be specified. - Values over 100m can be specified, as long as `radiusMeters` \\\u003c= `pixelSizeMeters * 1000`. - However, for values over 175m, the `DataLayerView` in the request must not include monthly flux or hourly shade. |\n| `view` | `enum (`[DataLayerView](/maps/documentation/solar/reference/rest/v1/dataLayers/get#DataLayerView)`)` Optional. The desired subset of the data to return. |\n| `requiredQuality` | `enum (`[ImageryQuality](/maps/documentation/solar/reference/rest/v1/dataLayers#ImageryQuality)`)` Optional. The minimum quality level allowed in the results. No result with lower quality than this will be returned. Not specifying this is equivalent to restricting to HIGH quality only. |\n| `pixelSizeMeters` | `number` Optional. The minimum scale, in meters per pixel, of the data to return. Values of 0.1 (the default, if this field is not set explicitly), 0.25, 0.5, and 1.0 are supported. Imagery components whose normal resolution is less than `pixelSizeMeters` will be returned at the resolution specified by `pixelSizeMeters`; imagery components whose normal resolution is equal to or greater than `pixelSizeMeters` will be returned at that normal resolution. |\n| `exactQualityRequired` | `boolean` Optional. Whether to require exact quality of the imagery. If set to false, the `requiredQuality` field is interpreted as the minimum required quality, such that HIGH quality imagery may be returned when `requiredQuality` is set to MEDIUM. If set to true, `requiredQuality` is interpreted as the exact required quality and only `MEDIUM` quality imagery is returned if `requiredQuality` is set to `MEDIUM`. |\n| `experiments[]` | `enum (`[Experiment](/maps/documentation/solar/reference/rest/v1/Experiment)`)` Optional. Specifies the pre-GA experiments to enable. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [DataLayers](/maps/documentation/solar/reference/rest/v1/dataLayers#DataLayers).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nDataLayerView\n-------------\n\nWhat subset of the solar information to return.\n\n| Enums ||\n|----------------------------------|--------------------------------------------------------|\n| `DATA_LAYER_VIEW_UNSPECIFIED` | Equivalent to FULL. |\n| `DSM_LAYER` | Get the DSM only. |\n| `IMAGERY_LAYERS` | Get the DSM, RGB, and mask. |\n| `IMAGERY_AND_ANNUAL_FLUX_LAYERS` | Get the DSM, RGB, mask, and annual flux. |\n| `IMAGERY_AND_ALL_FLUX_LAYERS` | Get the DSM, RGB, mask, annual flux, and monthly flux. |\n| `FULL_LAYERS` | Get all data. |"]]