Zishan Neno
Zishan Neno

Reputation: 2817

List of surrounding towns within a given radius

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

Answers (2)

david strachan
david strachan

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

Andrew Leach
Andrew Leach

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

  1. get a list of nearby postcodes

  2. look up the placename for each postcode

  3. remove the duplicates

Find Nearby Postal codes

Postal code search

Upvotes: 5

Related Questions