iPhone - How do i get direction with degree based location

前端 未结 2 1548
情深已故
情深已故 2021-01-07 12:58

First I\'ve implemented location manager functions in my class and whict are working fine, and gives me the current location. From that location I got how to get location de

2条回答
  •  [愿得一人]
    2021-01-07 13:36

    This is actually very simple. Latitudes begin at 0° at the equator with the north pole being 90.0 and the south pole being -90.0. Basically, if the latitude is between 0 and 90, you're in the northern hemisphere and the southern hemisphere for latitude between 0 and -90.

    Longitude basically works the same way. 0° refers to the prime meridian which is the imaginary line that runs through Greenwich, England and a part of Africa. A positive longitude up to 180° refers to locations east of the prime meridian, while negative longitudes refer to areas west of the prime meridian up to 180°.

提交回复
热议问题