Php 如何从十进制坐标确定纬度是北还是南,经度是西还是东?

Php 如何从十进制坐标确定纬度是北还是南,经度是西还是东?,php,gps,latitude-longitude,Php,Gps,Latitude Longitude,假设我有这个职位:32.709237,51.627789 我需要知道它的纬度是W还是E,经度是N还是S 北纬为正,南纬为负。 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 ar

假设我有这个职位:
32.709237,51.627789

我需要知道它的纬度是W还是E,经度是N还是S

北纬为正,南纬为负。
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
同样,东经为正,西经为负。


if(值纬度北为正,南为负。
同样,东经为正,西经为负。

if(值
if(value<0)
//value is negative