Street View URL Parser
Stop Typing Coordinates — Paste the Google Maps URL Into This
- location
- heading
- pitch
- fov
- historical_date_id
This is the node you reach for first, not because it produces anything pretty but because it saves you the most tedious part of the whole pack. The loader nodes need a location, heading, pitch, and fov - and figuring out heading and pitch by eye is miserable. StreetViewURLParser just takes the URL from your browser's address bar and pulls all of that out of it for you.
Go to Google Maps, drop into Street View, frame the shot you want, copy the entire URL, paste it into this node's url input. Done. No coordinate hunting, no compass guesswork.
How it works
It's regex over the URL - no API calls, no key, no cost. The URL encodes everything: the @lat,lon pair gives the location, and the data block like ,3a,75y,273.99h,85.73t gives field of view, heading, and pitch. There's one subtlety the parser handles for you: Google Maps encodes pitch where 90 is horizontal, while the Street View API uses 0 as horizontal. The parser does that conversion internally, so what you get out is ready to plug straight into a loader.
If the URL doesn't contain google.com/maps, it bails out and returns safe default values (the Katz's Deli coordinates), printing a warning. So paste the whole address, not a fragment.
Inputs and outputs
One input: url, a multiline text box. Five outputs:
location(STRING) -"lat,lon"heading(FLOAT)pitch(FLOAT)fov(INT)historical_date_id(STRING) - usually empty
Wire them one-to-one into any loader in this pack: location → location, heading → heading, and so on. It's a pure utility, so it does nothing by itself - it's only useful when connected to a Street View Loader, Street View Pano Loader, Street View Animator, or the cubemap/equirect nodes.
Getting a historical date ID
The interesting output is that last one. To load imagery from a past year, open the Street View clock icon, pick a date from the timeline, then copy the new URL from the address bar. It now contains a !1s... blob - a panorama ID - which the parser extracts into historical_date_id. Feed that into any loader's optional historical_date_id input and the historical capture takes over. It's the only sane way to get those IDs, so the parser is effectively the on-ramp for the whole historical-time-travel feature.
Install
Same pack as everything else - it's the StreetViewURLParser class in ru4ls/ComfyUI_StreetView-Loader, installed by cloning the repo and running pip install -r requirements.txt, then restarting ComfyUI. It sits in its own Ru4ls/StreetView/Utils menu category, a small courtesy that keeps the utility out of the way of the loaders. No API key needed for this node, though the loaders it feeds will still want one.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| url | STRING | Paste a Google Maps Street View URL here | — |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| location | STRING | — |
| heading | FLOAT | — |
| pitch | FLOAT | — |
| fov | INT | — |
| historical_date_id | STRING | — |