Search code examples
iphoneiosios6gpslocation

how to convert gps north and gps west to lat/long in objective c


I got these values from server:

<gps_n>34.22.123</gps_n>
<gps_w>81.59.345</gps_w>

I would like to convert these values to latitude/longitude in Objective C. Would you please give me a guide to do this?

Thanks


Solution

  • The formula for both lat/long (n/w) is:

    Degrees+(minutes/60)+(seconds/3600)

    From this page:

    http://webmaster10.com/ldr/lat-long-conversion.html