How do google street view work




















Your phone is now all you need to tell Google Maps what's there—and let people around the world explore it through your lens. Get the latest news from Google in your inbox. Please check your network connection and try again. Sign up to receive news and other stories from Google. Your information will be used in accordance with Google's privacy policy. You may opt out at any time. The Keyword. Maps Now anyone can share their world with Street View.

Dec 03, min read. Copy link. Stafford Marquardt. Reflecting more places and communities on Google Maps While our own Street View trekkers and cars have collected more than billion images from 10 million miles around the planet, there are still many unmapped parts of the world. In early testing, people contributed connected photos from Brazil. In early testing, people contributed connected photos from Japan.

Markers will appear with their tails anchored to the location's horizontal plane within the Street View panorama for example. Currently, the types of overlays which are supported on Street View panoramas are limited to Marker s, InfoWindow s and custom OverlayView s. Overlays which you display on a map may be displayed on a Street View panorama by treating the panorama as a substitute for the Map object, calling setMap and passing the StreetViewPanorama as an argument instead of a map.

Info windows similarly may be opened within a Street View panorama by calling open , passing the StreetViewPanorama instead of a map.

Additionally, when creating a map with a default StreetViewPanorama , any markers created on a map are shared automatically with the map's associated Street View panorama, provided that panorama is visible. Note that if you explicitly set the map's streetView property to a StreetViewPanorama of your own construction, you will override the default panorama.

Toggle the display to Street View to show the shared markers displaying within the StreetViewPanorama. When navigating between Street View or manipulating its orientation, you may wish to monitor several events that indicate changes to the StreetViewPanorama 's state:.

The following code illustrates how these events can be handled to collect data about the underlying StreetViewPanorama :. When displaying a StreetViewPanorama , a variety of controls appear on the panorama by default. You can enable or disable these controls by setting their appropriate fields within the StreetViewPanoramaOptions to true or false :.

The following example alters the controls displayed within the associated Street View and removes the view's links:. You may do so using the StreetViewService object, which provides an interface to the data stored in Google's Street View service. For that reason, you need to pass a callback method to execute upon completion of the request. This callback method processes the result. A request using StreetViewPanoRequest returns panorama data given a reference ID which uniquely identifies the panorama.

Note that these reference IDs are only stable for the lifetime of the imagery of that panorama. A request using StreetViewLocationRequest searches for panorama data at a specified location, using the following parameters:. The function getPanorama needs a callback function to execute upon retrieval of a result from the Street View service. This callback function returns a set of panorama data within a StreetViewPanoramaData object and a StreetViewStatus code denoting the status of the request, in that order.

Note that this data object is not a StreetViewPanorama object itself. To create a Street View object using this data, you would need to create a StreetViewPanorama and call setPano , passing it the ID as noted in the returned location.

The following code creates a StreetViewService that responds to user clicks on a map by creating markers which, when clicked, display a StreetViewPanorama of that location. The code uses the contents of StreetViewPanoramaData returned from the service. Using custom panoramas, you can display the interior of buildings, views from scenic locations, or anything from your imagination.

You can even link these custom panoramas to Google's existing Street View panoramas. Each Street View panorama is an image or set of images that provides a full degree view from a single location. Such a projection contains degrees of horizontal view a full wrap-around and degrees of vertical view from straight up to straight down.

These fields of view result in an image with an aspect ratio of A full wrap-around panorama is shown below. Panorama images are generally obtained by taking multiple photos from one position and stitching them together using panorama software.

See Wikipedia's Comparison of photo stitching applications for more information. Such images should share a single "camera" locus, from which each of the panorama images are taken. The resulting degree panorama can then define a projection on a sphere with the image wrapped to the two-dimensional surface of the sphere. Treating the panorama as a projection on a sphere with a rectilinear coordinate system is advantageous when dividing up the image into rectilinear tiles , and serving images based on computed tile coordinates.

Street View also supports different levels of image detail through the use of a zoom control, which allows you to zoom in and out from the default view. Generally, Street View provides five levels of zoom resolution for any given panorama image. If you were to rely on a single panorama image to serve all zoom levels, such an image would either necessarily be quite large and significantly slow down your application, or be of such poor resolution at higher zoom levels that you would serve a poorly pixellated image.

Luckily, however, we can use a similar design pattern used to serve Google's map tiles at different zoom levels to provide appropriate resolution imagery for panoramas at each zoom level. This view corresponds roughly with a normal human field of view. Zooming "out" from this default view essentially provides a wider arc, while zooming in narrows the field of a view to a smaller arc.

The StreetViewPanorama automatically calculates the appropriate field of view for the selected zoom level, and then selects imagery most appropriate for that resolution by selecting a tile set that roughly matches the dimensions of the horizontal field of view. How does Google get those really neat photos of the street? The technology is less complicated than you think. I spent a good part of yesterday tooling around with the new Google Maps Street View feature.

It's one of those Web services that just works. The data for four of the five Street View-enabled cities comes from a company called Immersive Media. In addition to these interactive 3D pictures, they use the same technology for videos.

Both use an lens camera called Dodeca that captures an immensely large surface area of images at a very high resolution. This camera is mounted on top of a moving vehicle that both records video and geodata simultaneously. What we're seeing on Street View are image stills from that video, which is how you're able to get a new shot from nearly every point on a recorded route.



0コメント

  • 1000 / 1000