2018-09-14 05:18:38 +10:00

16 lines
689 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"name": "to_dm",
"type": "function",
"description": "Convert a coordinate to degree, minute.",
"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, 'aligned' or 'suffix'."}
],
"examples": [
{ "expression":"to_dm(6.3545681, 'x', 3)", "returns":"6°21.274"},
{ "expression":"to_dm(6.3545681, 'y', 4, 'suffix')", "returns":"6°21.2741N"}
]
}