【问题标题】:How to determine if Latitude is North or South, or Longitude West or East from decimal coordinate?如何从十进制坐标确定纬度是北还是南,或西经或东经?
【发布时间】:2017-07-28 04:51:45
【问题描述】:

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

【问题讨论】:

    标签: php gps latitude-longitude


    【解决方案1】:

    北纬为正,南为负。
    同理,东经度为正值,西经度为负值。

    if(value<0)
    //value is negative
    

    【讨论】:

      【解决方案2】:
      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
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-01-21
        • 1970-01-01
        • 1970-01-01
        • 2012-12-30
        • 2011-12-13
        • 1970-01-01
        相关资源
        最近更新 更多