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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CLGeocoder.JSON
Queries data of geo coder as JSON.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CLGeocoder | 10.1 | Yes | No | No | Yes, macOS only | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Geocoder | The reference number of the geocoder instance. | $Geocoder |
Result
Returns JSON or error.
Description
Queries data of geo coder as JSON.This includes status variables, the error dictionary with details in case of error and the array of place marks with details for a place mark including location, address text and time zone for the location.
Examples
Query in one let statement and return JSON or error:
Let ( [
Address = "Berlin, Germany";
// run query and wait a bit
g = MBS( "CLGeocoder.GeocodeAddressString"; Address; 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 )
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 )
See also
- CLGeocoder.Close
- CLGeocoder.Done
- CLGeocoder.GeocodeAddressString
- CLGeocoder.ReverseGeocodeLocation
- IsError
Example Databases
Blog Entries
- New in the MBS FileMaker Plugin 10.1
- MBS FileMaker Plugin, version 10.1pr4
- Core Location Geocoder with JSON
Release notes
- Version 10.1
- Added CLGeocoder.JSON to return JSON for a geo coder with all details.
Created 12nd February 2020, last changed 12nd February 2020
CLGeocoder.GeocodeAddressString - CLGeocoder.PlacemarkCount
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins