Prevent Google StreetView Javascript API Returning Custom Panoramas

I am creating a tool that uses the javascript StreetView AND StreetView Image API to return images that I can combine and share. I need the interactive panoramas that google returns from their API to match the static images I receive from the Image API.

I found that if the panoramas are generated by Google and NOT the custom custom panoramas that are sometimes returned then everything is fine.

Unfortunately, I can't find a property that prevents Google from returning custom panoramas of users. Typically, when the user drags the Pegman onto the standard map and then drops it, I get one of these custom panoramas.

Anyone should have done this before?

+3


source to share


1 answer


Adding &source=outdoor

to a static url should help. You can also use the Street View Image metadata part of the static street image api to get the closest panorama using the same method parsing the json returned.



0


source







All Articles