BOUNDINGBOXEDGE

Returns the decimal latitude or longitude of the edges of a 2-dimensional square that circumscribes a circle of a given radius from a given origin (altitude, speed, and bearing are ignored). This is useful for quickly approximating whether a group of points are within a distance of an origin. If direction parameter is set to south or north then a decimal latitude is returned. If the direction parameter is set to east or west then a decimal longitude is returned.

 

Syntax

= BOUNDINGBOXEDGE (location, radius, direction)

Parameters

location

String containing the location in any of 3 formats: an XML location string, a latitude and longitude separated by a semicolon, or a street address.

radius

Decimal maximum distance

direction

String direction (north, south, east, west) of the edge of the bounding box to be returned.

Return Type

Decimal

Returns the decimal latitude or longitude

Examples

Example

Returns

BOUNDINGBOXEDGE(GetBrowserLocation(), 5, ”north”)

Returns a decimal value.