Moving back and forth in the street view API

I am integrating the Google Street View API in Unity for a VR project and I would like to know if the next longitude and latitude can be found if we are moving down the street.

If you are using Street View in Google maps, you can click on the arrows to move forward or backward on the street.

When you click on the arrow, you basically move to a new longitude and latitude.

I wanted to know if it is possible to add a similar action using the street view API.

Here is some of the code I'm using to load the Street View API:

string url = "http://maps.googleapis.com/maps/api/streetview?"
            + "size=" + width + "x" + height
            + "&location=" + latitude + "," + longitude
            + "&heading=" + (heading + sideHeading) % 360.0 + "&pitch=" + (pitch + sidePitch) % 360.0  
            + "&fov=90.0&sensor=false";

        if (key != "")
            url += "&key=" + key;

        WWW www = new WWW(url);
        yield return www;
        if (!string.IsNullOrEmpty(www.error))
            Debug.Log("Panorama " + name + ": " + www.error);
        else
            print("Panorama " + name + " loaded url " + url);

        renderer.material.mainTexture = www.texture;

      

So when you press the UP arrow, you can move around the screen.

+3
google-maps google-street-view google-maps-api-3 unity3d unityscript


source to share


No one has answered this question yet

Check out similar questions:

five
Loading Google View View API using panorama id, not location
4
Google Street View zoom to Fov
2
Outdoor images from Google Street View APIs
2
Google Street View Auto Header
1
Differences between panning options Google Street View API (Javascript vs HTTP)
1
Google Street View Camera Settings
1
Google Street View API image is not tied to the closest photographed location like maps
0
Is it possible to create a custom street panorama with a "move" effect? How?
0
Google Street View Image Accuracy
-1
google maps api v3 google street view and google Street View Static Image



All Articles
Loading...
X
Show
Funny
Dev
Pics