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

java.lang.Object
  extended by com.google.gwt.maps.client.streetview.StreetviewClient

public class StreetviewClient
extends java.lang.Object

A class to perform searches for Street View data based on parameters that are passed to its methods.

See Also:
"http://code.google.com/apis/maps/documentation/reference.html#GStreetviewClient"

Nested Class Summary
static class StreetviewClient.ReturnValue
          An enum equivalents for return codes returned by StreetviewData.getCode().
 
Constructor Summary
StreetviewClient()
          Creates a new instance of StreetviewClient class.
 
Method Summary
 void getNearestPanorama(LatLng latLng, DataStreetviewCallback callback)
          Retrieves the data for the nearest panorama to a given LatLng and passes it to the provided callback as a StreetviewData object.
 void getNearestPanoramaLatLng(LatLng latLng, LatLngStreetviewCallback callback)
          Finds the LatLng of the nearest panorama to a given point and passes it to the provided callback.
 void getPanoramaById(java.lang.String panoId, DataStreetviewCallback callback)
          Retrieves the data for the given panorama id and passes it to the provided callback as a StreetviewData object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreetviewClient

public StreetviewClient()
Creates a new instance of StreetviewClient class.

Method Detail

getNearestPanorama

public void getNearestPanorama(LatLng latLng,
                               DataStreetviewCallback callback)
Retrieves the data for the nearest panorama to a given LatLng and passes it to the provided callback as a StreetviewData object.

Parameters:
latLng - the geographical coordinates
callback - the callback to fire when the query returns

getNearestPanoramaLatLng

public void getNearestPanoramaLatLng(LatLng latLng,
                                     LatLngStreetviewCallback callback)
Finds the LatLng of the nearest panorama to a given point and passes it to the provided callback.

Parameters:
latLng - the geographical coordinates
callback - the callback to fire when the query returns

getPanoramaById

public void getPanoramaById(java.lang.String panoId,
                            DataStreetviewCallback callback)
Retrieves the data for the given panorama id and passes it to the provided callback as a StreetviewData object. Ids are unique per panorama and stable for the lifetime of a session, but are liable to change between sessions.

Parameters:
panoId - unique panorama id
callback - the callback to fire when the query returns