Do wywołania tej usługi zalecamy użycie dostarczonych przez Google bibliotek klienta. Jeśli aplikacja musi wywoływać tę usługę przy użyciu własnych bibliotek, podczas tworzenia żądań interfejsu API należy używać poniższych informacji.
Dokument opisujący
Dokument opisujący to czytelna dla komputera specyfikacja opisująca interfejsy API REST i sposób ich używania. Służy do tworzenia bibliotek klienta, wtyczek IDE i innych narzędzi, które współdziałają z interfejsami API Google. Jedna usługa może udostępniać wiele dokumentów opisujących. Ta usługa dostarcza następujący dokument opisujący interfejs API:
Punkt końcowy usługi to podstawowy adres URL, który określa adres sieciowy usługi interfejsu API. Jedna usługa może mieć wiele punktów końcowych. Ta usługa ma następujący punkt końcowy i wszystkie poniższe identyfikatory URI odnoszą się do niego:
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-12-21 UTC."],[[["The Solar API provides access to solar information for buildings and regions, including the ability to find the closest building to a point and get solar data for a region."],["The Solar API offers REST resources for building insights, data layers, and GeoTIFF image retrieval."],["Developers can interact with the Solar API using Google-provided client libraries or their own libraries, utilizing the provided discovery document and service endpoint."],["The service endpoint for the Solar API is `https://solar.googleapis.com`, and all URIs are relative to this endpoint."]]],["The Solar API, accessible via `solar.googleapis.com`, offers three REST resources: `v1.buildingInsights`, `v1.dataLayers`, and `v1.geoTiff`. `v1.buildingInsights` uses the `findClosest` method to locate the nearest building to a specific point. `v1.dataLayers` utilizes the `get` method to retrieve solar information for a location's surrounding area. `v1.geoTiff` employs the `get` method to obtain an image by its unique ID. The API service endpoint is `https://solar.googleapis.com`.\n"]]