Reputation: 795
I own gps tracker that send latitude and longitude to my server, as it is described in gps tracker manual(example for Latitude, for Longitude the same):
xxmm.dddd, where
xx = degrees;
mm = minutes;
dddd = decimal part of minutes; for example 11 deg. 26.6639 min.
I`d like to convert received coordinates into google maps format, for this purpuse I am using formula:
result = xx + (mm.dddd)/60
since, there is a division result could be presented as periodically fraction, for example - 1.6666(6), but it is very bad cause I am loosing so much of GPS preciness.
Questions
Upvotes: 0
Views: 3135
Reputation: 1
If you would like to convert DDD MM.MMM to Decimal Degress, I assume that you know the North South East or West for that location.
Example Latitude:
int xD = 020;
int xM = 10;
int xS = 7587;
Example Longitude:
int yD = 130;
int yM = 50;
int yS = 5475;
Conversion:
Lat = 020+(10/60)+(7587/3600);
Lon = 130+(50/60)+(5475/3600);
Upvotes: 0
Reputation: 30170
Upvotes: 2