Home > Programming, Servers & Scripts >

Help tracking down a geo script I've seen (4)


04-25-2013 04:26 AM #1 tmcalvin (Member)
Help tracking down a geo script I've seen

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


04-25-2013 05:16 AM #2 lhanna15 (Member)

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.


04-25-2013 08:54 AM #3 redrummr (Member)

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!


04-25-2013 06:53 PM #4 tmcalvin (Member)

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.

Quote Originally Posted by redrummr View Post
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 redrummr, that's not a bad idea for something similar and simple to get something going on it. I can always do something more complex later.


Home > Programming, Servers & Scripts >