Google Street View to Grasshopper

Do you have a …\Heron\0.5.0\gdal\share\ subfolder where Heron is installed? And does it have both egm08_25.gtx and proj.db files in this folder?

-Brian

Ya i was able to look at the folders and saw that those files are there and went to see if I had the latest Heron update (0.5.0)

Hello,

Is there any way to edit/delete some of the Google Earth meshes in Rhino? Like removing a tree or patching over a hole.

Hello Brian,

Adding to this thread because I’ve also been getting a “No inverse operation” error. Have tried the script with different EarthAnchorPoints and gotten the same error message:

My …\Heron\0.5.0\gdal\share\ folder contains both egm08_25.gtx and proj.db files.

I’ve been asking Gemini for help:

Any thoughts on a solution for this? Massive thanks for creating this tool!

@Colin7 @Tony_Lin I believe the issue lies with the space in the user name of the file path. Google 3D tiles use a geoid for their vertical datum, so I needed to introduce a custom vertical datum by adding the geoid file egm08_25.gtx located in the ..\gdal\share subfolder. GDAL does not like spaces in file paths, so I had to wrap it in quotes. Please try v0.5.1 (just uploaded) to see if it works now.

-Brian

Updated Heron to v0.5.1 w/ PackageManager and it seems to be working now, appreciate your fast response!

One thing I have noticed is after running the component, Grasshopper will “lock up” and prevent me from using the left+right mouse buttons, but middle mouse button still works. My workaround has just been to reboot Rhino + Grasshopper each time after running the component, but if there is a better method would be great to know.

-Tony

Hi @Brian_Washburn and all,

I’m really loving this addition, and have found a variety of use cases to existing workflows within our office. So much so that my API requests have quickly surpassed the free threshold and begun to incur healthy costs.

I have a few questions regarding tile caching and limiting extensive requests.

  • To confirm: each individual tile being downloaded/accessed counts as a single request within the Google Maps API?
  • Are all previously requested tiles cached in the local folder, or is that folder refreshed/purged with each subsequent call so as not to unnecessarily weigh down folders with unused meshes/textures? If I move or otherwise transform my boundary without changing LOD, would tiles currently downloaded be re-used or would all tiles need to be downloaded again?
  • Would it be possible to quantify how many tiles are being fetched prior to running the request? For instance, it would be nice for a notification saying “Do you really want to fetch 3,000 tiles?” before I accidentally process a square mile of downtown City X at 20 LOD. I could see a separate component providing this as a preview/QTO.

I’m sure there are other related questions out there, but I’m hoping you’ll have some insights to help limit gluttonous tile requests!

Really appreciate this - thanks again.
Alex

Hi @woodhouse ,

Glad you’re finding good uses for the new components. @Nicolas_Azel developed the portions of the component that navigate the Google API, but I’ll try to answer your questions:

  • My understanding is that each downloaded tile counts as an “event” for the 3D Tile API, and it is not tracked by session or root tile set. However, I just tried verifying this now and found my usage jumped 38 when I only downloaded 10 tiles. So something is off here that I need to look into. @Nicolas_Azel do you have any insight here?
  • Previously requested tiles are cached into a folder, but can be purged by selecting “Clear Cache Before Download” in the component menu. Currently if you move your boundary it will change what we call the manifest and any changes to the manifest trigger a new 3D tile API session. From my experience (and I’d like to be proved wrong), in each session, Google will generate a new file name for the same tile, making it very difficult to reuse tiles across sessions. This might be annoying, but it helps comply with Google’s terms of use.
  • The component already tells you how many tiles will be downloaded in the message box, but there is currently no way to stop before downloading. I could definitely add a boolean input to confirm downloading is desired after you know the count. A component to preview tile bounding boxes without triggering a download event would also be possible.

My general recommendation is to always start with a low LOD to avoid the gluttony.

-Brian

Rhino 8
Hi @Brian_Washburn
How do I get v.0.5.0 or v0.5.1? In PackageManager, I only see up to v0.4.5.

Hi Andrew, looks like you’re still on Rhino 7? v0.5+ is only available for R8

-A

This is likely an oversight/bug in the components code. Google Maps API charges by the session, and sessions have a specified timeout. I dont think we established a system for the component to persist a stored session id - and so its re-establishing a root session each time it runs - even if download is false, and you are only changing upstream props.

Short term solution - keep the component disabled at all times unless prepared to download.

Workflow to Patch the component: have the component write a .session file and store the active session id and check against that before re-requesting a root request. Github Issue

For reference here are the terms and documentation from google.
Map Tiles API Policies | Google Maps Tile API | Google for Developers
Google Maps Platform Terms Of Service | Google Cloud

Proper support for GLB’s (the 3d file format use in the photorealistic tiles) requires Rhino 8. Unfortunately, this feature cannot be implemented within Rhino 7.

To be a little more specific, Heron v0.5.0 and v0.5.1 have been compiled with RhinoCommon 8.12.24282.7001, so you will need to update Rhino 8 to v8.12+ to see Heron 0.5.1 listed in the package manager.

-Brian

Oh man, that’s annoying.

I am in Switzlerand, which is not part of the EEA, but still getting the 403 error. Ironically the Google Maps team is located in Zurich, probably no less than 3km from where I am now :confused:

More info here: Map Tiles API adjustments for European Economic Area (EEA) customers  |  Google Maps Platform  |  Google for Developers

Update: Got it working. The API wasn’t specifically enabled for the project. Seems like for once we are lucky not to be part of the EEA.

To @Brian_Washburn maybe you could improve the error reporting. The API actually shows quite a detailed and helpful error message:

Yeah, the confusing part for me was, that I could enable these services in my google account. No info there, that this is not possible with EEA billing address.

HI, i got the same problem. Is there any solution now to use this super add-on anyway ?

Thanks

Leave the EEA? :grinning_face: No, @Eugen wrote a nice tutorial here: Tutorial: Get google maps 3D data (cities, topo, etc) & Rhino import - #11 by Eugen
I was not able to fix my node.js setup but Claude could
Then I asked it for a python version and that also worked :wink:

LOL ! thanks for your response, i will take a look at it

Hi guyes, I just got this alert, do know what is wrong? I am afraid that this script is not working anymore.

1. Solution exception:The type initializer for ‘OSGeo.OSR.OsrPINVOKE’ threw an exception.