I've been trying to get data from Google street view for quite some time. For research purposes, I need to be able to estimate the sky area at some particular map location. That's why I need an estimation of the spherical view and I thought that using Google street view would be a good idea. What I actually need is given a 3d direction I should be able to tell what is the color of the pixel in this direction.
What I have come up is the following. I am downloading 6 images using Google Street View Image API to use them as cube textures (particularly I submit 6 queries with parameters:
(heading, pitch) = {(0, 0), (90, 0), (180, 0), (270, 0), (0, 90), (0, -90)}
When I map those 6 images to a cube what I get is the following:
The problem is that it seems there is some numerical error and the corners mismatch. I have an idea how to fix it but the complexity grows by a lot.
I've also looked at the JavaScript API but could not find a way to access the data from there. There is a mention of UV mapping on the offcial guide page
but it seems this is directed just for user generated content.
Am I missing something? Are there any alternative methods for doing this?
Basically you want to do what google is already doing but you need the 3d representation of it.
Using the following method (and its not easy), you can get better results but not perfect. The basic theory is this:
This is the process that (probably) google follows so that you can see a 360 view in their service, and you need to do the same to get the 3D representation in your code, but it won't be perfect since the images you get are not the raw images taken by google (which makes stitching them harder).