I am using leafletjs. I have a list of "WGS-84" positions that look like:

LATITUDE N45 52.1096 LONGITUDE W125 52.4665

LATITUDE N48 24.1051 LONGITUDE E174 37.3832

What is the significance of the alpha-numeric start to these positions? Can they be ignored and can I just use the normal lat/lng floats that follow them?


The N or S value of Latitude is whether the location is North or South of the Equator. W or E for Longitude, is W or E of the Prime Meridian. The number that follows the letter is the Degree of Latitude or Longitude, followed by minutes and seconds of Latitude/Longitude displayed as floats. The alpha-numeric values should not be ignored as they are part of the location.

  • Leaflet expects 2 numbers for lat/lng not alphanumeric, is there a way to convert these? leafletjs.com/reference.html#latlng – Titan Apr 8 '15 at 15:17
  • Link to a website for Converting Coordinates: earthpoint.us/Convert.aspx Im sure some projection algorithm exists – Maksim Apr 8 '15 at 15:22
  • 1
    It's also possible that those are decimal minutes not "minutes and seconds". The provider should specify the format somewhere. "Projection" is not necessary, just reformatting to decimal degrees. – Vince Apr 8 '15 at 15:26
  • Could you elaborate on reformatting to decimal degrees? – Titan Apr 8 '15 at 15:34
  • This link provides the math that goes along with reformatting to decimal degrees: rapidtables.com/convert/number/… – Maksim Apr 8 '15 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.