Reputation: 2817
Is it possible to get a list of surrounding "towns" within a given radius? Can someone please give me some pointers for this if it can be done? Thanks!
Upvotes: 4
Views: 30807
Reputation: 7228
This is not a map question. A suitable solution is using php/Mysql
If you get the the data for the required country from geonames and use this to create table. Then use the ‘haversine’ formula to select towns in the required radius. If you are using Google maps this demo can help
Upvotes: 5
Reputation: 12973
Google Maps doesn't allow this.
However, you can use geonames.org, but even they don't have a list of nearby towns. The way to do it appears to be
get a list of nearby postcodes
look up the placename for each postcode
remove the duplicates
Upvotes: 5