Click here to Skip to main content
15,851,387 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

In my Application I have a part to find a people who near to my location.Is it Possible?Let me explain it,

In this application user asked to sign up .Once the member logged in to the application they can search for who is near to my location. how do i achieve this .I googled it .but i don't find anything related to this.i am so stressed

Guide me the right way. I have a big Question " Is it Possible in Web Application?"

I hope here the experts guide me to achieve this.

Updated 21-Mar-15 6:17am
PIEBALDconsult 21-Mar-15 11:27am    
Yes. Geocoding and math. Simple.
King Fisher 21-Mar-15 11:33am    
you mean find Geo location of user from Ip address?
PIEBALDconsult 21-Mar-15 11:36am    
I do not. Ask the user for their location. Don't rely on IP address.
King Fisher 21-Mar-15 11:50am    
Is it possible to do without asking to the user?
PIEBALDconsult 21-Mar-15 11:55am    
No. Haven't you ever accessed a website from somewhere other than where you live or will be?
If you're going to, let's say Paris, and you want to see a list of members who are there, it doesn't matter where you are or where you live.

1 solution

"Is it possible to do without asking to the user?"

No, not in most cases.
IP based geolocation is a waste of time: Using IP based Geolocation - and why it's pretty much useless.[^] - easy to do, but it can;t be relied upon.
And unless your user is on a tablet or phone they probably don't have GPS for you to access - if they would let you get access.

So your best result is to ask them: They may lie to you, but at least they will expect the location to be rubbish in that case!
Share this answer
King Fisher 21-Mar-15 12:40pm    
Thank you. I agree your points.thanks and PIEBALDconsult saved my time.Really you are
"Mother BOT". ha ha ha. ;)
OriginalGriff 21-Mar-15 12:58pm    
You're welcome!

And I've been called a "mother-something" before, but "bot" is a novelty...:laugh:
PIEBALDconsult 21-Mar-15 13:07pm    
I wouldn't say the user may lie, I would say that the user knows the truth better than the device.
Knowing exactly_where_the_user_is_right_now is very often unimportant.
OriginalGriff 21-Mar-15 13:12pm    
I would! :laugh:

Look at the number of Indian members who apparently work in the USA - OK, that's the default when you create an account, but it's definitely "an untruth" and that counts as a lie to me! ;)

And when I sign up for some sites, I lie through my teeth: age, name, email, location - none of them are likely to be true if I don't want to get anything sent to me. And no, I'm not talking about "Gentleman's Special Interest" sites! :laugh:
PIEBALDconsult 21-Mar-15 13:18pm    
Here on CP I simply left the birthdate field at the default; I didn't lie. :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900