Ryan's quick Yahoo geocoder in as3
✓ Published0🌍 Public
RRandomEtc
Last edited Jan 26, 2010
Created on Jan 26, 2010
This example shows how to convert a free-form place name into latitude and longitude coordinates using the Yahoo Geocoding API. The MapUtil class defines a `geocode` method that sends a text query to Yahoo's MapsService endpoint and maps the returned XML response to a location object. It uses the `URLLoader` and `URLRequest` classes for asynchronous HTTP requests, and parses the response with the XML parser and Namespace handling. The resulting coordinates are passed to a callback function, enabling geocoding within a Flash-based mapping application.
AI-generated description