Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
A API Solar usa dados de lugar para determinar o tipo de edifício e identifica edifícios com base em imagens de satélite. Esta página descreve como determinar quais informações solares de um edifício são retornadas em uma solicitação buildingInsights.
Tipos de edifícios
A API Solar é compatível com edifícios do tipo
premise. Esse tipo indica um local nomeado, geralmente um edifício ou condomínios com um nome comum.
Outros tipos, como subpremise ou complexos (por exemplo, edifícios isolados localizados em uma única propriedade, a menos que registrados como um premise), não são aceitos.
Telhados de edifícios
A API Solar identifica o posicionamento ideal dos painéis solares no telhado com base em imagens de satélite. Edifícios residenciais, principalmente com telhados inclinados ou em forma de pirâmide, são identificados com um alto grau de precisão. Já edifícios com telhados planos (por exemplo, apartamentos ou edifícios comerciais) podem variar em precisão.
Se a resposta buildingInsights não incluir o campo solarPanelConfigs, o edifício foi processado corretamente, mas não foi possível colocar painéis no telhado. Isso pode acontecer se o telhado for muito pequeno para colocar painéis ou se estiver muito sombreado para que eles gerem energia significativa.
Use o place_id para se referir ao lugar correspondente.
Use as coordenadas de latitude e longitude do lugar na sua solicitação da API Solar
buildingInsights.
Se a API Solar encontrar um prédio correspondente, verifique se o place_id na resposta buildingInsights corresponde ao place_id da API Geocoding ou Place Autocomplete.
Para limitar os resultados a lugares do tipo premise, adicione um filtro de tipo de lugar às respostas da API Geocoding ou Places.
Você também pode oferecer uma experiência complementar permitindo que os usuários selecionem o
edifício no mapa usando a API Maps JavaScript. Extraia a latitude e a longitude do edifício do evento do mouse e transmita essas coordenadas em uma solicitação buildingInsights.
[null,null,["Última atualização 2025-08-29 UTC."],[[["\u003cp\u003eThe Solar API uses place data and satellite imagery to identify buildings and determine their solar potential, focusing on buildings classified as "premise" in Google Places.\u003c/p\u003e\n"],["\u003cp\u003eThe API primarily supports residential buildings with inclined roofs for accurate solar panel placement, while accuracy may vary for flat-roofed buildings.\u003c/p\u003e\n"],["\u003cp\u003eIf the \u003ccode\u003esolarPanelConfigs\u003c/code\u003e field is missing from the API response, it indicates the building was analyzed, but solar panel placement was not feasible due to roof size or shading.\u003c/p\u003e\n"],["\u003cp\u003eUsers can identify buildings for solar analysis by converting addresses to coordinates using Geocoding or Place Autocomplete APIs and passing the coordinates to the Solar API.\u003c/p\u003e\n"],["\u003cp\u003eA complementary approach involves users selecting a building directly on a map using the Maps JavaScript API, and using the extracted coordinates for solar analysis.\u003c/p\u003e\n"]]],["The Solar API utilizes place data and satellite imagery to identify buildings and determine solar potential. It primarily supports `premise` type buildings, excluding `subpremise` types. Optimal solar panel placement is assessed, with higher accuracy for residential pitched roofs; flat roofs may vary. The API can be used by converting an address to coordinates via the Geocoding or Place Autocomplete APIs, or by using a location selected on a map. The results can be filtered to places of type premise, and the results from the building insights api can be compared to the results from the geocoding or places API.\n"],null,["# Search buildings\n\nThe Solar API uses place data to determine building type and identifies\nbuildings based on satellite imagery. This page describes how to determine which\nbuilding's solar information is returned in a\n[`buildingInsights`](/maps/documentation/solar/reference/rest/v1/buildingInsights)\nrequest.\n\nBuilding types\n--------------\n\nThe Solar API supports buildings of type\n[`premise`](/maps/documentation/places/web-service/place-types). This type\nindicates a named location, usually a building or collection of buildings with a\ncommon name.\n\nOther types, such as\n[`subpremise`](/maps/documentation/places/web-service/place-types#table-b) or\ncompounds --- for example, detached buildings located on a single property, unless\nregistered as a [`premise`](/maps/documentation/places/web-service/place-types) ---\nare **not** supported.\n\nBuilding roofs\n--------------\n\nThe Solar API identifies optimal rooftop solar panel placement based on\nsatellite imagery. Residential buildings, particularly inclined or pitched\nroofs, are identified with a high degree of accuracy, while buildings with flat\nroofs (for example, apartment or commercial buildings) may vary in accuracy.\n\nIf the\n[`buildingInsights`](/maps/documentation/solar/building-insights#example_response_object) response does not include the field `solarPanelConfigs`, the building was processed correctly, but we were unable to put panels on the roof. This may happen if the roof is too small to place panels or too shaded for panels to generate significant energy.\n| **Tip:** Based on other selection approaches, including manual user selection or a custom programmatical selection, you can use the Solar API [`dataLayers`](/maps/documentation/solar/reference/rest/v1/dataLayers) endpoint to create your own solar potential calculations and panel placement.\n\nSearching from an address\n-------------------------\n\n1. You can convert an address to latitude and longitude coordinates using the\n [Geocoding API](/maps/documentation/geocoding/requests-geocoding#Types) or\n [Place Autocomplete API](/maps/documentation/places/web-service/autocomplete).\n\n Use the `place_id` to refer to the matched place.\n2. Use the place latitude and longitude coordinates in your Solar API\n [`buildingInsights`](/maps/documentation/solar/reference/rest/v1/buildingInsights)\n request.\n\n - If the Solar API finds a matching building, check that the `place_id` in the `buildingInsights` response matches the `place_id` from the Geocoding API or the Place Autocomplete API.\n - To limit results to places with type `premise`, add a place type filter to Geocoding API or Places API responses. \n\n ```json\n {\n \"name\": \"buildings/ChIJh0CMPQW7j4ARLrRiVvmg6Vs\",\n \"center\": {\n \"latitude\": 37.4449739,\n \"longitude\": -122.13914659999998\n },...\n }\n ```\n\n| **Note:** Sometimes the place IDs will not match, which means the searched (lat, lng) does not resolve to the same address or building. Even if the [Geocoding\n| API](/maps/documentation/geocoding/overview) response is of granularity [`ROOFTOP`](/maps/documentation/geocoding/requests-geocoding#results), the `place_id` may have a type other than `premise`.\n\nYou can use the [open source sample\napp](https://solar-potential-296769475687.us-central1.run.app/) or make a\n[`buildingInsights`](/maps/documentation/solar/building-insights) request to\ncheck the `place_id` for buildings covered by the Solar API.\n\nSelecting a location on a map\n-----------------------------\n\nYou can also offer a complementary experience by enabling users to select the\nbuilding on the map using the [Maps JavaScript\nAPI](/maps/documentation/javascript/overview). Extract the building's latitude\nand longitude from the [mouse\nevent](/maps/documentation/javascript/examples/event-click-latlng), then pass in\nthose coordinates in a\n[`buildingInsights`](/maps/documentation/solar/building-insights) request."]]