Using Google Maps to show the geographical location of your website's visitors
Untitled Document
Part I – What you’ll need
1. PHP w/DOM-XML – It is possible to do this with an earlier version of PHP, but you’ll have to do it differently. Or you can do it with Perl, ASP, Java, or whatever you’d like. This tutorial, however, shows you how using PHP w/DOM-XML. If you need hosting that supports PHP with DOM XML, I’m going to go ahead and plug my own company, Uresk Networks. We’ll give you an awesome deal. Email me for details.
2. A Google Maps API Key - This page also has useful information on how to use the API, beyond what we’ll go over in this tutorial.
3. Some sort of service for turning an IP address into a geocode (Latitude, Longitude). We use, and recommend, MaxMind. You can use any service or database you’d like, however, you’ll just have to keep in mind that the implementation may vary. You can discuss other databases/services in our forums – some users have discovered ways to do it that are more free, but a little more difficult to use.
Part II – Getting Started >>
|