Harrissou Sant-anna ae8ea31a0f More updates of expression help
- Expose default values of args
- Fix args name or description
- Fix/add more examples (to show various possibilities of a function or so
that functions that relate have examples that relate)
2020-08-21 13:02:35 +10:00

18 lines
806 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",
"groups": ["Conversions"],
"description": "Converts 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 (default), 'aligned' or 'suffix'."}
],
"examples": [
{ "expression":"to_dm(6.1545681, 'x', 3)", "returns":"6°9.274"},
{ "expression":"to_dm(6.1545681, 'y', 4, 'aligned')", "returns":"6°09.2741N"},
{ "expression":"to_dm(6.1545681, 'y', 4, 'suffix')", "returns":"6°9.2741N"}
]
}