GetLatLngsBoundingCoordinates (open)

Get bounding coordinates for a list of points

Syntax

LOADLIB "wh::util/geo.whlib";

RECORD FUNCTION GetLatLngsBoundingCoordinates(RECORD ARRAY points)

Parameters

RECORD ARRAY points

The points that should be contained

FLOAT lat

Latitude

FLOAT lng

Longitude

Return value

RECORD

Bounding coordinates which should contain all given points, or a default record if not points we're supplied

FLOAT maxlat

Minimum latitude

FLOAT maxlng

Minimum longitude

FLOAT minlat

Minimum latitude

FLOAT minlng

Minimum longitude

Description

Computes the bounding coordinates that contain all given points. If no points are given, returns a default record.