I need to determine if a given location has street view or not. So getPanoramaByLocation js API is the only way I can use as far as i know.
However, I have a python script to handle all those location data. So I am wondering how can I call getPanoramaByLocation from python by using PyV8? Do I need to load https://maps.googleapis.com/maps/api/js in python?
I am kinda new to this. So any hint and guide would be greatly appreciated!.
Thanks
Having had a quick look at the JS file you linked, the following answer applies for the most part [1] . You'd have to bridge both 'window' and 'document' somehow since these objects are not available in PyV8. The difficulty doing this is rather high, so if you're not very experienced in JS and python I'd look for other solutions. I recommend using a python native library instead. A quick google reveals quite a few options.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.