This is a PHP, HTML5 & JavaScript example of how your site can be location aware!.
Precise address House number Street Point of interest Named location City District State Postcode Country Latitude Longitude Accuracy Altitude Altitude accuracy Directional heading Speed
Location detection with HTML5 is pretty simple. Browsers either support navigator.geolocation or they don't. If they do you can open up a whole world of local information to your users plus log a deeper and more geographic level of statistics server side.
Download samples for free to add geolocation enable your website.
Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs, as well as user input.
W3 Geo Spec Mozilla Geo Guide Safari Geo Guide Google Geocoding
If you'd like to be kept up to date with the latest developments with the code please follow @detectlocation on Twitter. If you'd like to discuss the code, request extra features or just chime in with your two cents then join in on our thread at mobility.mobi