jphilapy wrote:hi leatherback, thanks for your reply.
I am thinking that too. I am just wondering if if this is something that I can load on my own server, or is this some service that is provided by say the postal service or something similar.
I believe that part of that basic math you speak of, will include the calculation of the arch of earth. I read that in passing. I will learn more as I read I suppose.
Jeff
Hey Jeff,
There probably are databases that provide postal code / latlon facilities online (And if you cannot find any, let me know, and I might just start one 😃). However, these services typically will charge yu for each postal code requested, which could get costly if you do not do your programming effectively (e.g., store the location of areas you know).
As for the calcs: See jack comment. You need to be somewhat carefull in just assuming that the world is 42000 km circumference, in 360 degrees, and therefor 1 degree represents * meters. It changes with latitude. As in these applications it doesn't come too close, you can probably just get away with applying a cosine of latitude as multiplication factor. Ideally you find a converter using a projection in meters.