Positive/Negative Latitude and Longitude values vs. Cardinal Directions
As I've been taught, lat and long are of following types:
- Latitude North
- Longitude West
- Latitude South
- Longitude East
During software development, if I receive two numeric values for lat and log, how can I translate those values into the cardinal directions?
Are these values North or South? East or West?
Sometimes lat/long are expressed in degrees/minutes/seconds, and require a N, S, E, or W direction to make sense. Decimal latitude and longitude is expressed as either a positive or negative number and doesn't require a cardinal direction. So if you're using decimal values for these, they aren't described as "latitude north" or anything like that.
Positive latitude is above the equator (N), and negative latitude is below the equator (S).
Positive longitude is east of the prime meridian, while negative longitude is west of the prime meridian (a north-south line that runs through a point in England).
Those values you give describe a point somewhere in Idaho (north of the equator and west of the prime meridian).
Notice if you change the latitude value to a negative (-44...), the point is "mirrored" across the equator, ending up somewhere in the Pacific Ocean. Same works with the longitude - make it positive, and your point is mirrored across the prime meridian, ending up somewhere in China.