To make #3 easy, and probably so we can include labels, etc. on the site itself, I think we'll need a JSON file containing details of each area we're going to show. The hard bit is finding the geographic centres of everywhere, but finding those also doesn't require any coding :-)
To find the lat/lon of somewhere:
- Find it in www.openstreetmap.org
- Right-click on the exact point you're after
- Choose "Centre map here" from the menu
- Then copy the last two numbers in the URL. E.g. for Anfield, the URL is
https://www.openstreetmap.org/#map=16/53.4328/-2.9547 and so the lat/lon is 53.4328/-2.9547
To make #3 easy, and probably so we can include labels, etc. on the site itself, I think we'll need a JSON file containing details of each area we're going to show. The hard bit is finding the geographic centres of everywhere, but finding those also doesn't require any coding :-)
To find the lat/lon of somewhere:
https://www.openstreetmap.org/#map=16/53.4328/-2.9547and so the lat/lon is53.4328/-2.9547