Solved

IP location finding and Googel Maps

Posted on 2009-03-30
3
325 Views
Last Modified: 2013-12-17
Hi All,

I run a website that uses Google Maps quite a lot.

I've been on several 'What is my IP' website, and most of them tell me where i live...!

My question is how do i integrate these two so i don't need to ask users where they are located?


here is a site that is doing it....
http://www.ipaddresslocation.org/city-test2.php


My site is written in PHP, but I can also use .NET 3.5 if required.



Many thanks
0
Comment
Question by:detox1978
3 Comments
 
LVL 20

Expert Comment

by:Gawai
ID: 24017787
probably u are looking for this one

http://www.ip2location.com/
its not free but demo available
0
 
LVL 5

Accepted Solution

by:
pghn earned 500 total points
ID: 24017905
I think this is what you are looking for:
(Since you use GMaps nothing better)

http://code.google.com/apis/ajax/documentation/#ClientLocation
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 24018216
Bear in mind that this is probably going to return the location of the ISP, and that is not likely to be the same as the location of the client machine.  How close you get to the client location will vary.  I am located in Washington, DC and McLean, VA but my ISP is located about 40 miles south in Virginia.  That may not be an issue for you, but it's worth being aware of the potential.  If that level of accuracy is acceptable, you'll be fine.  If you need tighter targeting, you can geo-locate addresses very easily with Google and Yahoo (but you still need to know the address).  Best, ~Ray
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now