Search buildings

The Solar API uses place data to determine building type and identifies buildings based on satellite imagery. This page describes how to determine which building's solar information is returned in a buildingInsights request.

Building types

The Solar API supports buildings of type premise. This type indicates a named location, usually a building or collection of buildings with a common name.

Other types, such as subpremise or compounds — for example, detached buildings located on a single property, unless registered as a premise — are not supported.

Building roofs

The Solar API identifies optimal rooftop solar panel placement based on satellite imagery. Residential buildings, particularly inclined or pitched roofs, are identified with a high degree of accuracy, while buildings with flat roofs (for example, apartment or commercial buildings) may vary in accuracy.

Searching from an address

  1. You can convert an address to latitude and longitude coordinates using the Geocoding API or Place Autocomplete API.

    Use the place_id to refer to the matched place.

  2. Use the place latitude and longitude coordinates in your Solar API buildingInsights request.

    • 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.
    • To limit results to places with type premise, add a place type filter to Geocoding API or Places API responses.
      {
      "name": "buildings/ChIJh0CMPQW7j4ARLrRiVvmg6Vs",
      "center": {
      "latitude": 37.4449739,
      "longitude": -122.13914659999998
      },...
      }
      

You can use the open source sample app or make a buildingInsights request to check the place_id for buildings covered by the Solar API.

Selecting a location on a map

You can also offer a complementary experience by enabling users to select the building on the map using the Maps JavaScript API. Extract the building's latitude and longitude from the mouse event, then pass in those coordinates in a buildingInsights request.

interactive map to point location.