Link to home
Start Free TrialLog in
Avatar of VBdotnet2005
VBdotnet2005Flag for United States of America

asked on

coordinates

How can I turn string of coordinates to latitude and longitude?

sample : latitude 86,5,51,0  longitude 41, 8.74, 0

86.551000000000   41.874000000   ?
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Dim original As String = "86,5,51,0"
Dim values() As String = original.Split(","c)
Dim result As String

result = values(0) & "." & (values(1) & values(2) & values(3)).PadRight(12, "0"c)

Open in new window