How can I get a visualization of visitor IP by location on a Google map on my website?
-
i.e. when the visitor accesses the website the IP is geolocated and a map displayed in the screen.
-
Answer:
From the question it sounds like you want to show a map to your users that shows all prior visitor locations. If that's the case, going forward the recommendation is to use the HTML5 navigator.geolocation method eg. http://code.google.com/apis/maps/documentation/javascript/basics.html#DetectingUserLocation You could store each visitor lat/lng and then render them on a map Otherwise, another free option for non-HTML5 visitors, you could capture IPs and look them up in something like MaxMind's GeoLiteCity database, but there is more work involved in building that and then maintaining the data set http://www.maxmind.com/app/geolitecity
Miles Woodroffe at Quora Visit the source
Other answers
The http://ipinfo.io homepage shows a map of the user's approximate location using Google Maps static API (see https://developers.google.com/maps/documentation/staticmaps/?csw=1). You can do something similar by making use of the ipinfo.io API to get the user's location, and the same Google API to render the map. Here's a javascript snippet that does exactly that: $.get("http://ipinfo.io", function (response) { $("#map").html("<img src='https://maps.googleapis.com/maps/api/staticmap?size=300x300&sensor=false&zoom=10¢er=" + response.loc +"'/>"); }, "jsonp"); And here's the resulting map:
Ben Dowling
Here is a quick tool that allows you to paste in an IP Address and see the approximate location of the visitor - http://www.seomoz.org/ip2loc If you really want fine tuned details of where your visitors are from I would recommend signing up for a free account with Google Analytics. Once you are tracking your visitors with Google Analytics you will be able to see a map overlay with additional details on the locations. http://www.google.com/analytics/
Jonathan Moore
You can visit this site http://www.ip-details.com/ip-details-client/ and copy the code available there and post it on your web page or website. Then you can Have Your Viewers IP Address, and IP Address details(country, ISP, address, etc.) displayed on your website, or Provide an IP Search for your website users. Results will be displayed on your website
Ainos Lawraga
Related Q & A:
- How can I get a good deal at a luxury resort?Best solution by lastminute.com
- How can I get a loan without a job?Best solution by Yahoo! Answers
- How can I get a bahrain transferable visa in order to find a job?Best solution by evisa.gov.bh
- How can I get a Google Voice Account?Best solution by eHow old
- How can I get a text alert when I get an email?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.