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.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

CoreLocation.distanceFromLocation

Returns the distance (in meters) from the receiver's location to the specified location.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CoreLocation 2.7 Yes No Yes, macOS only No No

MBS( "CoreLocation.distanceFromLocation"; latitude; longitude )

Parameters

Parameter Description Example value
latitude The latitude value for the geo coordinate. 51.50939
longitude The latitude value for the geo coordinate. -0.11832

Result

Returns distance in meters.

Description

Returns the distance (in meters) from the receiver's location to the specified location.
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

Return distance from London

MBS( "CoreLocation.distanceFromLocation"; 51.50939, -0.11832)

Example Databases


CoreLocation.distanceFilter   -   CoreLocation.headingAvailable

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins