MikroTik GPS NMEA to Decimal – No Float Parsing Possible?

Hi all,

What I want:
Send GPS data from my MikroTik (LtAP LR8, RouterOS 7.19) to Traccar using HTTP (osmand protocol). Traccar requires decimal degrees, but MikroTik outputs NMEA (e.g. 5259.0371).

The Problem:
My MikroTik won’t parse or calculate float values – :tonum “1.5” and :parse “59.0371/60” both return nothing. All scripts just produce integers, not decimal degrees.

Question:
Has anyone managed to convert NMEA to decimal degrees on MikroTik without working float math?
Any workaround or idea?
Or is external processing the only way?

Thanks!

Can’t you change the “coordinate-format” to use “dms”?
i.e.

/system/gps/set coordinate-format=dms

which would get you degrees, minutes, seconds. May still require some parsing for your needs… but avoid floating point math (which is not possible).

Or there is “coordinate-format=dd” for decimal degrees if that what you mean…

See https://help.mikrotik.com/docs/spaces/ROS/pages/84901890/GPS#GPS-ConfigurationProperties