Follow us on GitHub

com.google.gwt.maps.client.placeslib
Class AutocompleteOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.placeslib.AutocompleteOptions

public class AutocompleteOptions
extends JavaScriptObject

The options that can be set on an Autocomplete.

See AutocompleteOptions API Doc


Constructor Summary
protected AutocompleteOptions()
          use newInstance();
 
Method Summary
 LatLngBounds getBounds()
          The area in which to search for Places.
 AutocompleteType[] getTypes()
          gets The types of predictions to be returned.
static AutocompleteOptions newInstance()
          Create new AutocompleteOptions instance.
 void setBounds(LatLngBounds bounds)
          The area in which to search for Places.
 void setTypes(AutocompleteType... types)
          Sets the types of predictions to be returned.
 
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

AutocompleteOptions

protected AutocompleteOptions()
use newInstance();

Method Detail

newInstance

public static final AutocompleteOptions newInstance()
Create new AutocompleteOptions instance.


setBounds

public final void setBounds(LatLngBounds bounds)
The area in which to search for Places. Results are biased towards, but not restricted to, Places contained within these bounds.

Parameters:
bounds -

getBounds

public final LatLngBounds getBounds()
The area in which to search for Places. Results are biased towards, but not restricted to, Places contained within these bounds.


setTypes

public final void setTypes(AutocompleteType... types)
Sets the types of predictions to be returned. Supported types are 'establishment' for businesses and 'geocode' for addresses. If no type is specified, both types will be returned.

Parameters:
types -

getTypes

public final AutocompleteType[] getTypes()
gets The types of predictions to be returned. Supported types are 'establishment' for businesses and 'geocode' for addresses. If neither is specified, both types are returned.



Follow us on GitHub

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