PHP Classes

Localization class: Detect user location using HTML 5 API or GeoIP API

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-08-27 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 890 This week: 4All time: 3,733 This week: 270Up
Version License PHP version Categories  
local-class 2GNU General Publi...5PHP 5, Web services, Geography
Description Author  

This class can detect user location using HTML 5 API or GeoIP API.

It can generate HTML with JavaScript code to detect the user location using Google Maps API on a browser that implements the HTML 5 geo-location API.

The class can also determine the user location by sending a HTTP request to the GeoIP API Web server to retrieve the location associated to the current use IP address.


User location using an API
Search user location with an API

Detect user's location at the street level
Web site user's location

Picture of Tiago André
Name: Tiago André <contact>
Classes: 4 packages by
Country: Portugal Portugal
Age: ???
All time rank: 144520 in Portugal Portugal
Week rank: 190 Up4 in Portugal Portugal Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file demo.php Example demo file
Plain text file geo.class.php Class main file

 Version Control Unique User Downloads Download Rankings  
 0%Total:890All time:3,733
 This week:4This week:270Up