Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

coordFormat

text coordFormat(degree, pattern, language)

Returns the coordinate degree formatted according to pattern in language. Currently only English is supported.

Pattern symbols with special meaning:

SymbolComponent
DDegrees, signed
dDegrees, unsigned
mMinutes
sSeconds
NNorth if degree >= 0, South otherwise
SSouth if degree >= 0, North otherwise
EEast if degree >= 0, West otherwise
WWest if degree >= 0, East otherwise
'Avoid interpretation
''Single quote

Examples

PatternResult
d°m′s″ N15°8′29″ N
d.dddddd N15.123456 N
ddmmss.ss401213.1

Parameters

  1. degree — coordinate degree number to format.
  2. pattern — formatting text pattern, see symbols.
  3. language — optional language code, defaults is English.

Returns

  • the formatted degree.
Note! This documentation is also accessible within the app from Help & feedback menu.