Hi,
1. you have to init the map and wait until the map is ready:
map.addEventListener(MapEvent.MAP_READY, onMapReady);
2. start your request, after the map is ready:
private function onMapReady(e:MapEvent):void{
gc = new ClientGeocoder();
gc.addEventListener(GeocodingEvent.GEOCODING_SUCCESS,
handleGeocodingSuccess);
gc.addEventListener(GeocodingEvent.GEOCODING_FAILURE,
handleGeocodingFailure);
3. have fun with the result
private function handleGeocodingSuccess(e:GeocodingEvent):void {
var placemarks:Array = e.response.placemarks;
}
On Dec 4, 7:53 pm, lucianopopo <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> Anyone knows how to do a Reverse Geocoding?
>
> I know that exist this method: ClientGeocoder.reverseGeocode(), but I
> don´t know how to use it. Anyone has any example? I didn´t find any
> example over the internet.
>
> Thanks.
>
> Luciano Fernandes
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---