Solved

IP location finding and Googel Maps

Posted on 2009-03-30
3
327 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 109

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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 dynamically set the form action using jQuery.

831 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