0
votes

I am working on an iPhone app where I need to find some coordinates at some distance from a given point.

The user touches the map and I get coordinates at the touch. Now I have to find some coordinates which are about 5 km away towards east and another one about 5km down to south. I have searched the web but could not find any algorithm for it.

I am not sure this is correct place for this question or whether I need to find some other section where I can find questions related to maths.

1
Familiarise yourself with this much used source of information: movable-type.co.uk/scripts/latlong.htmlHigh Performance Mark

1 Answers

1
votes

If Earth's circumference is C, the point at d kilometers to south of a given point is 360*d/C degrees to the south. The point at d kilometers to east is 360*d/(C*cos(latitude)) degrees to the east.

So if Earth's circumference is 40075.04 km, to move 5 km to the south you would subtract 0.0449 from the latitude and use the same longitude. To move 5 km to the east you would use the same latitude and add 0.0449/cos(latitude) to the longitude.