Solved

IP location finding and Googel Maps

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

828 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