Unofficial Content

It Mehod of Map External Object, gets the distance in meters between two locations.

Parameters

Name Type Description
FromLocation GeoPoint Specifies the first of the two locations to calculate the distance.
ToLocation GeoPoint  Specifies the second location to calculate the distance between.

Return value

  • Distance:
    type: Numeric
    The distance between the two location points in meters.

Notes

  • The result might differ on each platform because they use different reference models provided by its built-in functions.
    If it is critical to get the same result, the developers can write their own function. 
  • The same method is apllied to the, deprecated, Geolocation External Object. However, in this case, the pameters change to Geolocation domain: 
Name Type Description
FromLocation Geolocation domain Specifies the first of the two locations to calculate the distance.
ToLocation Geolocation domain  Specifies the second location to calculate the distance between.

 

Code samples

Last update: December 2025 | © GeneXus. All rights reserved. GeneXus Powered by Globant