Hi, I was wondering if anyone could point me in the direction of getting something done similar to this page as far as displaying nearby cities to my location. Looks much more convincing in my opinion than all members being in the same city as I am, esp in small cities and deeper niches.
I've googled and haven't been about to come up with much. Found a couple similar things but nothing I could use. Kinda surprised it's been so hard to find. Any help would be appreciated.
http://lesbianpersonals.com/go/g551525-pct
I would go the route of using a zip code database that has city names and latitude and longitude and writing some code that would find the first few nearest cities based on latitude and longitude to the user's city. Here are some links that may help:
Zip code database - http://www.zip-codes.com/zip-code-database.asp or http://federalgovernmentzipcodes.us/
Calculating distance using latitude and longitude - http://www.geodatasource.com/developers/php
Hope that helps.
You can get this whipped up for under $100.
Alternatively, say "miles from [city]" and use whatever numbers you like for 2 or 3 of the pics, and the rest "√ in [city]!"
This is a very minor part of the game, just be creative!
thanks lhanna15, yea, I looked at some solutions that involved that. it just seemed over my head and thought there would be something simpler in the meantime.