Computing distance using lat/long coordinates
Note that latitude and longitude are in degrees. Latitude is in degrees north of the equator; southern latitudes are negative degrees north. Longitude is in degrees east of the prime meridian; degrees west are negative degrees east.
Determine your latitude and longitude based on your IP address.
In the US, you can look up the coordinates of a geographical location using Microsoft's TerraServer.