我使用http://www.pgc.umn.edu/tools/conversion转换
52 37.9418 N. 01.18.8020 E. (DDM我想?)
要
纬度52.632363 经度1.313367
这似乎非常准确,我已经玩过计算来自己转换这些值,但它们似乎从来都不准确。
http://en.wikipedia.org/wiki/Geographic_coordinate_conversion
这次转换背后的数学是什么?
答案 0 :(得分:2)
//Parsing the DDM format is left as an excersize to the reader,
// as is converting this code snippet into a usable function.
double inputDegrees = 52;
double inputMinutes = 37.9418;
double latitude = inputDegrees + (inputMinutes/60); // 52.632363