|FAQ| Zip code related questions



Q: How to find the distance between two zip codes/cities?
Q: How to find list of cities/zip codes that are with in the particular
radius from given city/zip code?

A: In spherical trigonometry, we have haversine formula, which provides
relationship between the radius of the sphere and any two points on the
sphere (longitude and latitude of the points). So, if we take the earth
as a sphere and have longitude and latitude of any two cities, we can
find the distance approximately.

Developed countries like U.S. have census data that contains the zip
code, longitude and latitude of a particular city (along with
population data); this in turn helped a lot to find the distance
between any two cities or any two zip codes using the database. Not to
mention, even many commercial zip code databases are available for that
purpose.

Once we have the Zip code database, it's merely a calculation over the
data.

Refer:
1. http://www.census.gov/cgi-bin/geo/gisfaq?Q5.1 (Down now, alternative
is http://www.movable-type.co.uk/scripts/GIS-FAQ-5.1.html )
2. http://en.wikipedia.org/wiki/Haversine_formula haversine formula
3. http://www.census.gov/geo/www/gazetteer/places2k.html 2000 U.S.
Gazetteer
4. http://www.phpclasses.org/phpziplocator
5. http://www.phparchitect.com/sample.php?disc_show=316&mid=9

++++
@todo Grammar fix

.



Relevant Pages

  • Re: Fit sphere to planar circles
    ... My approach so far has been to use hough circle detection in the area of = ... sphere regions of the sphere, and I am using some logic = ... I have a similar problem and I abandoned the hough transform. ... normalization though) at the radius of interest. ...
    (comp.soft-sys.matlab)
  • Re: Question about analysis of Schwarzschild solution on Fo. of Phys. 1988, 18, 6
    ... "On the gravitational field of a sphere of incompressible fluid ... for the mass point. ... The Schwarzschild radius. ...
    (sci.physics.relativity)
  • Re: average distance between points inside or on a sphere
    ... between two points in a ball of radius R. ... correspond to a circular slice through the sphere with radius r2; ... the intersection with the surface of the sphere of a line ... element divided by the total surface area of the sphere, ...
    (sci.math)
  • Re: a new Yahoo Group for "Dance of the Planets"
    ... > change in density of the mass results in changing the shape of the space ... > wood sphere with a 3 kilogram sphere of Lead or Iron notice how much more ... The Sun's mass and radius are about: ... The density of balsa wood varies from about 5 to 20 pounds per cubic foot. ...
    (sci.astro)
  • Re: Curved space-time?
    ... how do you fuse/combine space (the general absence of matter) and ... Where A is the surface area and r the radius of the sphere. ...
    (sci.physics)