Distance Calculation using Zip Postal Codes
Packages with zip postal codes along with the list of zip postal codes contain latitudes and longitudes.
This information may be used to find the nearest shop location to a customer, to determine the distance to a hospital and etc.
Sometimes two towns only minutes apart may have completely different zip postal codes because they are in different states.
According to zip postal codes it may seem that there is a huge distance between these towns.
Two towns situated hours away from each other may have zip postal codes only one digit different.
This formula will help you to calculate the distance using latitude and longitude of a zip postal code.
where dist - exact distance in miles and x is calculated according to the formula:
Using this formula you will calculate the distance in miles.
To convert it in kilometers, you may use the formula:
1 mile = 1.609kilometers.