Convert latitude / longitude from decimal number to degree, minutes, seconds

Hello, if I have coordinates like this: 56.4511 x 9.4561, how can I display this as nicely formatted coordinates like 56° 27’ 3.96’’ N x 9° 27’ 21.96’’ E

Probably with a third party converter. Maybe something like this?

Just for the record: I implemented it in Bubble, believe it or not :slight_smile:

I have not added seconds yet, but I think it’s doable. But it makes it quite complicated that you cannot control the order that the operators are executed in. Some parentheses would be nice!

Live mode on the page:
15

Bubble editor:

2 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.