GetLatLngBoundingCoordinates (open)
Get bounding coordinates of a given distance box around a point
Syntax
LOADLIB "wh::util/geo.whlib";
RECORD FUNCTION GetLatLngBoundingCoordinates(RECORD centerpoint, FLOAT distance, RECORD options)Parameters
RECORD centerpointCenterpoint
FLOAT latLatitude
FLOAT lngLongitude
FLOAT distancethe distance from the point measured in the same unit as the radius argument. (default: meters)
RECORD optionsOptions
FLOAT radiusRadius in meters (default: 6378137 to return a distance on Earth in meters)
Return value
RECORDBounding coordinates which should contain all coordinates within the given distance
FLOAT maxlatMinimum latitude
FLOAT maxlngMinimum longitude
FLOAT minlatMinimum latitude
FLOAT minlngMinimum longitude
Description
Computes the bounding coordinates of all points on the surface of a sphere that have a great circle distance to the point represented by this GeoLocation instance that is less or equal to the distance argument. For more information about the formulae used in this method visit [http://JanMatuschek.de/LatitudeLongitudeBoundingCoordinates].