views:

27

answers:

1

I have a method in an API that takes a lat/long coordinate and will find other coordinates within a specified distance. That distance is in radians.

All the math I do these days deals with accounting or maybe x,y coordinates for laying out UI elements, so I appreciate some help validating these numbers.

Lets ignore people in buildings (altitude) and the fact that the planet isn't perfectly spherical. It is my understanding that the supplied method is doing the Haversine formula internally but that detail is isolated from me.

I am looking at the formula for radians:

θ = s /r, where θ is the subtended angle in radians, s is arc length, and r is radius

Given the convenient mean radius of the Earth of:

6371 km (≈3,959 mi)

I have seen other places saying (6378km)

That means 1 radian on Earth is equal to 6371 km in arc length. That would mean the radian for finding coordinates 1m apart would be 1.56961231 × 10-7.

Is that right? If not where is the above incorrect?

+1  A: 

It's correct. Although I feel a little shame posting this as an answer :)

belisarius
In regards to shame, imagine me coming to terms with asking this question. It should be basic math, but I had to make sure this was right. I saw one of the authors saying a radian was like 70 miles and became confused.
blu
@blu Shame Sharing :)
belisarius
@blu One radian IS one radius (ie 6371 Km)
belisarius
Yep that my understanding of θ = s /r. It seemed really simple to me, but with this new math stuff who knows ;). I am waiting for someone to come by and third the motion and mark it as answered.
blu