Follow us on GitHub

com.google.gwt.maps.client.streetview
Class StreetViewService

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.streetview.StreetViewService

public class StreetViewService
extends JavaScriptObject

A StreetViewService object performs searches for Street View data.

See StreetViewService API Doc


Constructor Summary
protected StreetViewService()
          use newInstance();
 
Method Summary
 void getPanoramaById(String pano, PanoramaIdHandler handler)
          Retrieves the data for the given pano id and passes it to the provided callback as a StreetViewPanoramaData object.
 void getPanoramaByLocation(LatLng latlng, double radius, PanoramaByLocationHandler handler)
          Retrieves the StreetViewPanoramaData for a panorama within a given radius of the given LatLng.
static StreetViewService newInstnace()
          A StreetViewService object performs searches for Street View data.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreetViewService

protected StreetViewService()
use newInstance();

Method Detail

newInstnace

public static final StreetViewService newInstnace()
A StreetViewService object performs searches for Street View data.


getPanoramaById

public final void getPanoramaById(String pano,
                                  PanoramaIdHandler handler)
Retrieves the data for the given pano id and passes it to the provided callback as a StreetViewPanoramaData object. Pano ids are unique per panorama and stable for the lifetime of a session, but are liable to change between sessions.

Parameters:
pano -
handler -

getPanoramaByLocation

public final void getPanoramaByLocation(LatLng latlng,
                                        double radius,
                                        PanoramaByLocationHandler handler)
Retrieves the StreetViewPanoramaData for a panorama within a given radius of the given LatLng. The StreetViewPanoramaData is passed to the provided callback. If the radius is less than 50 meters, the nearest panorama will be returned.

Parameters:
latlng -
radius -
handler -


Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.