Google street view to grasshopper

Hi, i am looking for a way to get google street view images into gh or rhino. Couple years back there was a WIP component by Heron, though not sure it was ever released. Ideally as a set of image in a certain area and all viewing direction. The idea is to use that as background for some architectural vizualisations

Google Street View in Heron — BWA

I could try it in python with my own api key, but apart form save to file not much progress :wink:

import urllib.request

# Set parameters
lat, lng = 40.730610, -73.935242  # Example
heading, pitch, fov = 235, 10, 90
size = "600x300"
api_key = "API_KEY"

# Construct API URL
url = f"https://maps.googleapis.com/maps/api/streetview?size={size}&location={lat},{lng}&heading={heading}&pitch={pitch}&fov={fov}&key={api_key}"

# Download image
image_path = "C:\\path\\to\\save\\streetview.jpg"
urllib.request.urlretrieve(url, image_path)

print("Street View Image Downloaded")

Hi @crz_06 ,
I never got around to releasing it, but see below for the GH with C# components I was using to develop it at the time. It includes both a street view and pano-sphere setup.
20250211_GoogleStreetView.zip (729.2 KB)

Note the C# components reference Newtonsoft.Json.dll (included in the zip file). EDIT: And make sure the EarthAnchorPoint is set.

I’ll add this back on my list of components to add.

-Brian

4 Likes

Hi @Brian_Washburn thanks ! works a charm. On a related note, by change, is on your todo list the possibility of loading Google Earth’s generated mesh with preserved textures, so their photogrammetry, into gh/rhino? Currently i use Blender and Blosm with works ok, but would be nice to see it in a future release of heron

edit: i make use of this method: How To Import ANY Location to Rhino

Hi @crz_06 , I’ve played around with Google’s 3d tile service, but ran into a stumbling block when it came to bringing in the textures. The meshes came in fine, but I think there was a problem with reading the Draco compression of texture mapping. This was before Rhino improved reading glb files, so I’ll take another look.
-Brian