I have a csv with a list of the world sea ports and their coordinates.
The coordinates are in this format:
5234N 00226W
How can i convert this to decimal Latitude / Longitude ?
I have a csv with a list of the world sea ports and their coordinates.
The coordinates are in this format:
5234N 00226W
How can i convert this to decimal Latitude / Longitude ?
Seems to be http://en.wikipedia.org/wiki/UN/LOCODE
Coordinate syntax explained in http://www.unece.org/fileadmin/DAM/cefact/locode/Service/LocodeColumn.htm#Coordinates
1.10 Column "Coordinates"
This column contains the geographical coordinates (latitude/longitude) of the location, if there is any.
In order to avoid unnecessary use of non-standard characters and space, the following standard presentation is used:
0000lat 00000long
(lat - Latitude: N or S ; long – Longitude: W or E, only one digit, capital letter) Where the last two rightmost digits refer to minutes and the first two or three digits refer to the degrees for latitude and longitude respectively. In addition, you must specify N or S for latitude and W or E for longitude, as appropriate.
I assume the data is in DDDMM format.
So you have to divide the value by 100, and the fractional part by 0.60 to get decimal degrees.
The result is inside England, but away from the shore:
At least the name Astley Abbots is right.