Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Submits a reverse-geocoding request for the specified location.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CLGeocoder | 4.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
latitude | The latitude of the coordinate. | ||
longitude | The longitude of the coordinate. | ||
wait | Available in MBS FileMaker Plugin 10.1 or newer. Pass 1 to wait for geocoder to have a result. Pass 0 to not wait and check later if geocoder is done. |
1 | Optional |
Returns reference number or error.
Reverse geocode location:
MBS("CLGeocoder.ReverseGeocodeLocation"; CLGeocoder::Latitude; CLGeocoder::Longitude)
Run query and get back JSON or error:
Let ( [
latitude = 52.517631899999998;
longitude = 13.4096574;
// run query and wait a bit
g = MBS( "CLGeocoder.ReverseGeocodeLocation"; latitude; longitude; 1 );
e = MBS("IsError");
// query JSON if we got something
r = If (e = 0; MBS( "CLGeocoder.JSON"; g ); g);
// free resources
f = If (e = 0; MBS( "CLGeocoder.Close"; g ); 0)
]; r )
This function checks for a license.
Created 18th August 2014, last changed 12nd February 2020