Scribunto is a MediaWiki-hosted version of Lua.
I believe it is fairly standard Lua.
I want to convert geographic coordinates from this format:
42°33'N, 1°33'E
... to this format:
42.55|1.55
How to do this in Scribunto?
Scribunto is a MediaWiki-hosted version of Lua.
I believe it is fairly standard Lua.
I want to convert geographic coordinates from this format:
42°33'N, 1°33'E
... to this format:
42.55|1.55
How to do this in Scribunto?
This assumes the input string is strictly of the form in the post. If there's any variability e.g. it can omit the minutes, include seconds, latitude and longitude can be separated differently, or whatever, the pattern will need to change.