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.Distance
Returns the distance (in meters) of the two locations.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CLGeocoder | 6.1 | Yes | No | No | Yes, macOS only | Yes |
MBS( "CLGeocoder.Distance"; latitude1; longitude1; latitude2; longitude2 ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| latitude1 | The latitude value for the geo coordinate. | 51.50939 |
| longitude1 | The latitude value for the geo coordinate. | -0.11832 |
| latitude2 | The latitude value for the geo coordinate. | 52.518611 |
| longitude2 | The latitude value for the geo coordinate. | 13.408333 |
Result
Returns OK or error.
Description
Returns the distance (in meters) of the two locations.This method measures the distance between the two locations by tracing a line between them that follows the curvature of the Earth. The resulting arc is a smooth curve and does not take into account specific altitude changes between the two locations.
Examples
Returns distance between London and Berlin:
MBS( "CLGeocoder.Distance"; 51.50939; -0.11832; 52.518611; 13.408333)
See also
Example Databases
Blog Entries
Created 18th February 2016, last changed 18th February 2016
CLGeocoder.Close - CLGeocoder.Done
Feedback: Report problem or ask question.
Links
MBS FileMaker blog