Packagecom.yahoo.maps.webservices.geocoder
Classpublic class Geocoder
InheritanceGeocoder Inheritance flash.events.EventDispatcher

This class provides access to the Yahoo! Geocoder service, allowing you to find the specific latitude and longitude for an address string. You can also reverse geocode a latitude and longitude to return an address.



Public Properties
 PropertyDefined by
  locale : String
Geocoder
Public Methods
 MethodDefined by
  
Creates a new Geocoder object
Geocoder
  
geocode(address:Address, args:Object = null):void
Sends a request to the geocoding service.
Geocoder
  
geocodeWOEId(woeid:uint, args:Object = null):void
Geocoder
  
reverseGeocode(latlon:LatLon, args:Object = null):void
Sends a reverse request to the geocoding service.
Geocoder
Events
 EventSummaryDefined by
   Dispatched only if the request failed, the XML did not parse or there were no results.Geocoder
   Dispatched when the request was successful and there was at least one result.Geocoder
Property detail
localeproperty
locale:String  [read-write]Implementation
    public function get locale():String
    public function set locale(value:String):void
Constructor detail
Geocoder()constructor
public function Geocoder()

Creates a new Geocoder object

Method detail
geocode()method
public function geocode(address:Address, args:Object = null):void

Sends a request to the geocoding service.

Parameters
address:Address — An Address object.
 
args:Object (default = null) — An object containing key/value pairs to pass as arguments to the geocoder.

See also

geocodeWOEId()method 
public function geocodeWOEId(woeid:uint, args:Object = null):voidParameters
woeid:uint
 
args:Object (default = null)
reverseGeocode()method 
public function reverseGeocode(latlon:LatLon, args:Object = null):void

Sends a reverse request to the geocoding service.

Parameters
latlon:LatLon — A LatLon object.
 
args:Object (default = null) — An object containing key/value pairs to pass as arguments to the geocoder.

See also

Event detail
geocoderFailureevent 
Event object type: GeocoderEvent

Dispatched only if the request failed, the XML did not parse or there were no results.

geocoderSuccessevent  
Event object type: GeocoderEvent

Dispatched when the request was successful and there was at least one result.