So I need to get an image of a random google street view. I’ve discovered that google maps has this special url for getting free street view images. https://streetviewpixels-pa.googleapis.com/v1/thumbnail?panoid={panorama_id}&cb_client=maps_sv.tactile.gps&w={image_width}&h={image_height}&yaw={yaw}&pitch={pitch}&thumbfov={fov}, but there is one problem: the panorama_id is a random string of letters and numbers and there is no way to efficiently get a valid panorama id.
I tried brute forcing panorama id’s but that was very slow.
I found someone doing this with ReactJS for their GeoGuessr remake (How can I get a random streetview location? second answer)
I need some sort of python code that finds a random street view location and allows me to download the image and save the coordinates. I also need it to be completely free as I need a LOT of street view images.
Grinhecker is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.