List of surrounding cities within a given radius
Is it possible to get a list of surrounding "cities" within a given radius? Can someone please give me some pointers to this if it can be done? Thank!
+3
Zishan
source
to share
2 answers
Google Maps doesn't allow this.
You can use geonames.org, however, but even they don't have a list of nearby cities. The way to do it seems to be
-
get a list of the nearest zip codes
-
find the filename for each zip
-
remove duplicates
Find Neighboring Zip Codes
Zip code search
+5
Andrew leach
source
to share
It's not a matter of a map. Suitable solution is to use php / Mysql
If you get data for required country from geonames and use it to create table. Then use the 'haversine' formula to select cities within the required radius. If you are using google maps this demo might help
+5
david strachan
source
to share