MoveLatLng (open)

Move a lat/long coordinate

Syntax

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

RECORD FUNCTION MoveLatLng(RECORD latlng, FLOAT direction, FLOAT distance, FLOAT radius)

Parameters

RECORD latlng

Coordinate to move

FLOAT lat

Latitute

FLOAT lng

Longitude

FLOAT direction

The direction to move the coordinate to, in rad, clockwise from north

FLOAT distance

The distance in meters

FLOAT radius

Radius to use (defaults to 6378137 to move on Earth in meters)

Return value

RECORD

The moved coordinate

FLOAT lat

Latitute

FLOAT lng

Longitude