如何从小数点坐标确定纬度是北还是南,还是经度西或东?

时间:2017-07-28 04:51:45

标签: php gps latitude-longitude

让我说我有这个职位:32.709237, 51.627789 我需要知道它的纬度是W还是E,经度是N还是S.

2 个答案:

答案 0 :(得分:3)

If 1st value = positive the mean you are in East
If 1st value = negative the mean you are in West
If 2nd value = positive the mean you are in North
If 2nd value = negative the mean you are in South

答案 1 :(得分:1)

北纬为正,南纬为负 同样,经度东部为正,西部为负

if(value<0)
//value is negative