Knowing where visitors come from and placing them on the map is one of the functions provided by Google Analytics, but that functionality does not yet exist to display your own maps. The example represents my visitors today, with the disadvantage that there is no zoom, unless you want to view by country, and those pesky sizes cannot be controlled.
However, the friends of Zipwise, using the API of Google Maps have made a nice toy that, just by receiving the hit of an image placed on the blog can reflect the last 100 visitors on the map.
To do this, the following code is copied in the header or in a Adsense deluxe type ad.
Here I show the example of the area of influence of the Hispanic area frequented by Geofumadas at 10 PM, Venezuela time. Of course, with the disadvantage of just being able to see the latest 100 unless you grab the code of your API and do tricks to your liking.
The conversion of an IP to a coordinate of type lat, lon is a function that exists in SQL of the form INET_ATON () and INET_NTOA (). Although Zipwise friends claim that there is a simple way to convert it manually:
For the case, an IP 188.8.131.52 Is transformed by making fashion series:
12 * 256 ^ 3 = 201,326,592
34 * 256 ^ 2 = 2,228,224
56 * 256 ^ 1 = 14,336
78 * 256 ^ 0 = 78
Until you take it to the form:
Hehe, as easy as Geospatial Administrator of Bentley Map.
There are other data that can be downloaded from the Zipwise website, and through paid services to access your data.