views:

59

answers:

3

I want to make a global social network, in which users can search for nearby users.

What is the preferred way to allow users to easily specify where they are located?

Zip code would be accurate, but is US-only.

Lat/long would be accurate, but it is too difficult for mom and dad types.

Drop-down menu of continent, country, province, major city is simple, but perhaps not that accurate if someone lives somewhere remote or in between two major cities.

Your thoughts?

+1  A: 

Use an API to convert addresses to latitude/longitudes.

http://code.google.com/apis/maps/faq.html#geocoder_exists

http://code.google.com/apis/maps/documentation/geocoding/index.html

Anton
That's not my question. My question isn't how to convert an address to a lat/long.My question is what is the most idiot-proof user interface to get a user's address within a few miles.
Joseph Turian
Provide them with a text box to type in their address. Pass that into the API and get a latitude/longitude.
Anton
@turian: the answer is pertinent. Put a textbox, let them drop in their address, then geocode it. And let them the ability to edit the address: google geocoding can often resolve to nothing and/or to north pole.
ZJR
+1. You could show them the result on a map and let them drag their "You Are Here" marker to tweak the results if needed.
MarkJ
A: 

Hi,

What about using their ip address to locate their location. It isn't best solution compared to google geocoding, but not a bad one i guess.

This might help

IP2Location Application

for more google "location by ip address + api"

Cheers

Sandy
also checkout http://www.geobytes.com/IpLocator.htm?Getlocation
Sandy