sk-zk / streetlevel

download panoramas and metadata from Street View, Look Around, and more
https://streetlevel.readthedocs.io
MIT License
49 stars 11 forks source link

Streetview: Multiple street names #13

Closed Miss-Inputs closed 7 months ago

Miss-Inputs commented 7 months ago

Breaking change, removes the street_name field from StreetViewPanorama and replaces it with street_names, as the API is actually using toggle 8 to return the street name labels that usually go along the road or float off into the distance, and also has angles for such. (The rendering of labels seems to be related to roll/pitch correction, as sometimes street name labels go upwards into the distance for no apparent reason, but that doesn't seem to be returned.)

I hope I documented it nicely and the test I added shows what I'm on about, but basically if you have a straight section of road that has the road name on either side, you usually get one StreetLabel that has multiple angles instead of two StreetLabels, with a + intersection you'll get 2 StreetLabels and both have 2 angles for either side. Note that the angle does not seem to be entirely accurate so there might be more to it, but sometimes with complicated intersections (like in this test case, particularly some of its neighbours) the labels will be shown on the wrong streets, so that's probably just Google being silly and not something we need to worry about.