0

So I want to get the square formed by a single point of lat/lons, my plan was to take that point's latitude, divide by 360, and multiply by the circumference of earth. Giving us the distance from the equator.

Now I will take 1/4 the circumference of earth, and subtract by the distance from the equator, giving us the height of triangle T. I can the find the base because I know the initial height, truncated height, and the original base.

Now using the base and height I can use trig to find the minimum and maximum longitude, and the latitude is easy because lets are evenly spaced. Does this sound right?

EDIT:

Let me simplify this question.

How can I find the distance between two points of longitude, at a single point of latitude?

Andre Silva
  • 10,259
  • 12
  • 54
  • 106
OneChillDude
  • 121
  • 5

2 Answers2

1

So for me the answer was, because I dont need that much accuracy, to use the Great-circle distance formula.

distance of one degree of longitude = Cos( longitude ) * radius * ( π / 180 ).

Distance of latitude = about 69 miles / degree

OneChillDude
  • 121
  • 5
  • 1
    This formula is correct for distance along a circle (it appears in many places on this site) but it is not the great-circle formula: a circle of latitude is a great circle only at the Equator. To see how incorrect it can be, consider the distance from, say, Mexico City (19.25, -99) and Bombay (19.25, +73) (which aren't too far from the Equator as it is). Your formula gives Cos(19.25)(73+99)69 = 11,200 miles, whereas the correct distance is 9730 miles. That 13% error is large. – whuber Apr 08 '13 at 17:22
0

Are you familiar with python? If you are there's another post which covers your Question!

What tools in Python are available for doing great circle distance + line creation?

nickves
  • 11,519
  • 3
  • 42
  • 75