2018-08-14 12:50:43 -04:00
|
|
|
{
|
|
|
|
"name": "to_dm",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["Conversions"],
|
2020-08-02 09:53:34 +02:00
|
|
|
"description": "Converts a coordinate to degree, minute.",
|
2022-01-13 08:56:17 -05:00
|
|
|
"arguments": [{
|
|
|
|
"arg": "coordinate",
|
|
|
|
"description": "A latitude or longitude value."
|
|
|
|
}, {
|
|
|
|
"arg": "axis",
|
|
|
|
"description": "The axis of the coordinate. Either 'x' or 'y'."
|
|
|
|
}, {
|
|
|
|
"arg": "precision",
|
|
|
|
"description": "Number of decimals."
|
|
|
|
}, {
|
|
|
|
"arg": "formatting",
|
|
|
|
"optional": true,
|
|
|
|
"default": "",
|
|
|
|
"description": "Designates the formatting type. Acceptable values are NULL (default), 'aligned' or 'suffix'."
|
|
|
|
}],
|
|
|
|
"examples": [{
|
|
|
|
"expression": "to_dm(6.1545681, 'x', 3)",
|
|
|
|
"returns": "6\u00b09.274\u2032"
|
|
|
|
}, {
|
|
|
|
"expression": "to_dm(6.1545681, 'y', 4, 'aligned')",
|
|
|
|
"returns": "6\u00b009.2741\u2032N"
|
|
|
|
}, {
|
|
|
|
"expression": "to_dm(6.1545681, 'y', 4, 'suffix')",
|
|
|
|
"returns": "6\u00b09.2741\u2032N"
|
|
|
|
}],
|
|
|
|
"tags": ["converts", "minute", "degree", "coordinate"]
|
2018-08-14 12:50:43 -04:00
|
|
|
}
|