Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

CLGeocoder.GeocodeAddressString

Submits a forward-geocoding request using the specified string.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CLGeocoder 4.1 Yes No Yes, macOS only No Yes

MBS( "CLGeocoder.GeocodeAddressString"; Address )

Parameters

Parameter Description Example value
Address A string describing the location you want to look up. For example, you could specify the string "1 Infinite Loop, Cupertino, CA"” to locate Apple headquarters. "Andernach, Germany"

Result

Returns reference number or error.

Description

Submits a forward-geocoding request using the specified string.
This method submits the specified location data to the geocoding server asynchronously and returns. Your completion handler block will be executed on the main thread. After initiating a forward-geocoding request, do not attempt to initiate another forward- or reverse-geocoding request.
Geocoding requests are rate-limited for each app, so making too many requests in a short period of time may cause some of the requests to fail. When the maximum rate is exceeded, the geocoder passes an error back.
You need to use CLGeocoder.Close later to free the geocoder.

Examples

Geocodes an address:

$r = MBS("CLGeocoder.GeocodeAddressString"; CLGeocoder::AddressString)

See also

Example Databases


CLGeocoder.ErrorMessage   -   CLGeocoder.PlacemarkCount

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins