* $solarService = new Google\Service\Solar(...); * $buildingInsights = $solarService->buildingInsights; * */ class BuildingInsights extends \Google\Service\Resource { /** * Locates the closest building to a query point. Returns an error with code * `NOT_FOUND` if there are no buildings within approximately 50m of the query * point. (buildingInsights.findClosest) * * @param array $optParams Optional parameters. * * @opt_param string experiments Optional. Specifies the pre-GA features to * enable. * @opt_param double location.latitude The latitude in degrees. It must be in * the range [-90.0, +90.0]. * @opt_param double location.longitude The longitude in degrees. It must be in * the range [-180.0, +180.0]. * @opt_param string requiredQuality 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. * @return BuildingInsightsModel * @throws \Google\Service\Exception */ public function findClosest($optParams = []) { $params = []; $params = array_merge($params, $optParams); return $this->call('findClosest', [$params], BuildingInsightsModel::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(BuildingInsights::class, 'Google_Service_Solar_Resource_BuildingInsights');