geeViz.googleMapsLib¶
Google Maps Platform client for geeViz.
Provides functions for ground-truthing and enriching remote sensing analysis using Google Maps Platform APIs:
Geocoding — address to coordinates and reverse
Places — search, nearby, details, photos
Street View — static images, panoramas, AI interpretation
Elevation — terrain height at any location
Static Maps — basemap images for reports
Air Quality — current AQI and pollutants
Solar — rooftop solar potential
Roads — snap GPS traces to nearest roads
24 public functions:
Geocoding:
geocode,reverse_geocode,validate_addressPlaces:
search_places,search_nearby,get_place_photoStreet View:
streetview_metadata,streetview_image,streetview_images_cardinal,streetview_panorama,streetview_htmlAI Analysis:
interpret_image,label_streetview,segment_image,segment_streetviewElevation:
get_elevation,get_elevations,get_elevation_along_pathEnvironment:
get_air_quality,get_solar_insights,get_timezoneMaps:
get_static_mapRoads:
snap_to_roads,nearest_roads
Quick start:
import geeViz.googleMapsLib as gm
# Geocode an address
result = gm.geocode("4240 S Olympic Way, Salt Lake City, UT")
# Street View panorama + AI interpretation
pano = gm.streetview_panorama(-111.80, 40.68, fov=360)
analysis = gm.interpret_image(pano)
# Semantic segmentation (SegFormer)
seg = gm.segment_image(pano, model_variant="b4")
# Elevation, air quality, solar
elev = gm.get_elevation(-111.80, 40.68)
aq = gm.get_air_quality(-111.80, 40.68)
solar = gm.get_solar_insights(-111.80, 40.68)
Requires a GOOGLE_MAPS_PLATFORM_API_KEY in your environment or .env
file. Gemini AI features use GEMINI_API_KEY.
Copyright 2026 Ian Housman
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Functions
|
Geocode an address to coordinates using the Google Geocoding API. |
|
Get current air quality conditions at a location. |
|
Get elevation in meters at a geographic location. |
|
Get elevation profile along a path. |
|
Get elevations for multiple locations in one request. |
|
Fetch a place photo by its resource name. |
|
Get rooftop solar potential for the nearest building. |
|
Get a static map image centered on a location. |
|
Get timezone information for a location. |
|
Interpret a Street View or satellite image using Google Gemini. |
|
Fetch a Street View panorama and label detected objects with bounding boxes. |
|
Find the nearest road segments to a point. |
|
Convert coordinates to an address (reverse geocoding). |
|
Search for places near a location using Nearby Search (New). |
|
Search for places using the Google Places API (New) Text Search. |
|
Perform pixel-level semantic segmentation using SegFormer. |
|
Fetch a Street View panorama and segment it with SegFormer. |
|
Snap GPS points to the nearest road segments. |
|
Generate an HTML panel with embedded Street View images. |
|
Fetch a Street View static image as JPEG bytes. |
|
Fetch Street View images looking N, E, S, and W. |
|
Check if Street View imagery exists at a location. |
|
Fetch a wide-angle or full 360° Street View panorama as a stitched image. |
|
Validate and standardize an address. |