GPS Degrees Minutes Seconds (DMS) to (DD) from within Umbraco (/ Razor)
Hi,
I am looking for a way to convert my DMS to DD from within Razor itself so that I can add the new DD value to a simple Google link for displaying the GPS.
My DMS works and fetches data that is stored in the EXIF GPS data. Problem is that it returns the unicode values for the degree, double quote and single quote and so on.
GPS Degrees Minutes Seconds (DMS) to (DD) from within Umbraco (/ Razor)
Hi,
I am looking for a way to convert my DMS to DD from within Razor itself so that I can add the new DD value to a simple Google link for displaying the GPS.
My DMS works and fetches data that is stored in the EXIF GPS data. Problem is that it returns the unicode values for the degree, double quote and single quote and so on.
e.g. https://www.google.com/maps/place/51°7'2.77",30°7'20.14";"
So some options are:
Though for both options I would need to be able to remove the unicode...
Ok, found a workaround.
Since DMS is accepted by Google (and other mapping APIs) I was able to found a workaround using @Url.Encode and giving it my DMS value.
Which returns
For one of my DMS values fetched :)
is working on a reply...