O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). More »
Given a longitude and a latitude, what's the great circle distance between them? The formula for this computation, and many others, is available at the Aviation Formulary, by Ed Williams:
QuoteT...
If you're writing a web application, and you want to find places (restaurants, theaters) within a certain distance from your user, you'll probably need to work with zip codes. Here's a go...