On Sep 18, 1:37 pm, funandlearning <[email protected]> wrote: > Hi All - > > I am trying to get all the zip codes within 40 miles of a given zip > code. Can anyone suggest on how to approach this?
1. get a database of zipcodes with latitude and longitude 2. get the latitude and longitude of your input zipcode (If you are going to display it on a map, you could use google's geocoder for that) 3. query your database for the zipcodes that are less than 40 miles from the input coordinates. The distance query has been posted to this group several times and appears in the "store locator" tutorial: http://code.google.com/apis/maps/articles/phpsqlsearch.html I suspect none of this has anything to do with the Google Maps API (the topic of this group), unless you are going to display your results on a map. John Coryat's site has a lot of information about zip codes: http://maps.huge.info/ -- Larry > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
