I really don’t think that would be a reliable method to detect which page to serve,. You’re anticipating that your visitors’ IP addresses will accurately reflect their location, but that’s not necessarily the case. (My own IP address misreports my location by over 400 miles.)
I would also suggest that as those places look like links, they ought to behave like links and be manually selectable. (I might live in one place, but regularly visit another, and so want to view more than one of them.) At the moment, they’re just frustrating because they do nothing.
I think this is where I found the code. This script shows your location on a google map, but I suppose once you get the coords, you can do whatever you like with that data.
Interestingly, it does not have to rely on a GPS enabled mobile device. Running it on my laptop with a wifi connection and no GPS, it seems surprisingly accurate.