ConvertToLatLng (open)

Convert a coordinates record from another coordinates system to latitude/longitude

Syntax

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

RECORD FUNCTION ConvertToLatLng(RECORD coordinates, STRING type)

Parameters

RECORD coordinates

A coordinates record, in a format suitable for the given type

STRING type

The coordinate system name to convert from

Return value

RECORD

A [ FLOAT lat, FLOAT lng ] record, or a default record if an invalid input record was given or an unsupported coordinates system was specified

Description

Currently only the "RD" (Dutch Rijksdriehoeksmeting) type is supported, requiring a [ INTEGER x, INTEGER y ] coordinates record.