Packagecom.google.maps.services
Classpublic class ClientGeocoderOptions

ClientGeocoderOptions specifies properties for configuring ClientGeocoder instances.



Public Properties
 PropertyDefined by
  countryCode : String
The countryCode for geocoding queries.
ClientGeocoderOptions
  language : String
The language for geocoding queries.
ClientGeocoderOptions
  viewport : LatLngBounds
The viewport for geocoding queries.
ClientGeocoderOptions
Public Methods
 MethodDefined by
  
ClientGeocoderOptions(param:Object = null)
Constructs a new ClientGeocoderOptions object, optionally initializing it from an object.
ClientGeocoderOptions
  
toString():String
Returns a String representation of this object.
ClientGeocoderOptions
Property detail
countryCodeproperty
countryCode:String  [read-write]

The countryCode for geocoding queries. This is specified as a standard two-letter country code, for example "US", "DE". When omitted, the browser's preferred language setting is used.

Implementation
    public function get countryCode():String
    public function set countryCode(value:String):void
languageproperty 
language:String  [read-write]

The language for geocoding queries. This is specified as a standard two letter language code, for example "en", "fr". When omitted, the browser's preferred language setting is used.

Implementation
    public function get language():String
    public function set language(value:String):void
viewportproperty 
viewport:LatLngBounds  [read-write]

The viewport for geocoding queries. The geocoder will attempt only to return results which lie within or near the viewport.

Implementation
    public function get viewport():LatLngBounds
    public function set viewport(value:LatLngBounds):void
Constructor detail
ClientGeocoderOptions()constructor
public function ClientGeocoderOptions(param:Object = null)

Constructs a new ClientGeocoderOptions object, optionally initializing it from an object.

Parameters
param:Object (default = null) — An initialization object containing a set of values that supplement the default set.

Example
   var options:ClientGeocoderOptions = new ClientGeocoderOptions({
     language: 'en',
     countryCode: 'CA'
   });

Method detail
toString()method
public function toString():String

Returns a String representation of this object.

Returns
String — String representation of this object.