| Package | com.myflashlab.air.extensions.gps |
| Class | public class GeocodingManager |
| Inheritance | GeocodingManager Object |
| Method | Defined By | ||
|---|---|---|---|
GeocodingManager($context:ExtensionContext)
do not try to initialize this class manually. | GeocodingManager | ||
direct($address:String, $onResult:Function):void
Geocoding direct means converting an address into Gps latitude/longitude
| GeocodingManager | ||
reverse($latitude:Number, $longtitude:Number, $onResult:Function):void
Geocoding reverse means converting Gps cordinates into human readable address
| GeocodingManager | ||
| GeocodingManager | () | Constructor |
public function GeocodingManager($context:ExtensionContext)
do not try to initialize this class manually. instead, init the main Gps class and access this class using Gps.geocoding
$context:ExtensionContext |
| direct | () | method |
public function direct($address:String, $onResult:Function):voidGeocoding direct means converting an address into Gps latitude/longitude
Parameters
$address:String | |
$onResult:Function |
See also
Gps.geocoding.direct
Gps.geocoding.direct("Sydney", onResultGeocodingDirect);
function onResultGeocodingDirect($location:Array):void
{
// there might be more than one location found for this address
trace("$location.length = " + $location.length);
trace("$location = " + JSON.stringify($location));
trace("-----------------------------");
}
| reverse | () | method |
public function reverse($latitude:Number, $longtitude:Number, $onResult:Function):voidGeocoding reverse means converting Gps cordinates into human readable address
Parameters
$latitude:Number | |
$longtitude:Number | |
$onResult:Function |
See also
Gps.geocoding.reverse
Gps.geocoding.reverse(-33.7969235, 150.9224326, onResultGeocodingReverse);
function onResultGeocodingReverse($address:Array):void
{
// there might be more than one address found for this location
trace("$address.length = " + $address.length);
trace("$address = " + JSON.stringify($address));
trace("-----------------------------");
}