This page is a bare bones example of the GeoLocation API. Currently, I've had this page working with Chrome 5+ and Firefox 3.5+. Safari 5 (Windows) is supposed to have support too, but I've not had it workiong with that browser.
By themselves, the latitude and longitude coordinates aren't particularly useful, so what you can do is plug them into your favourite mapping service, like the Google Maps API. This can be quite accurate. For instance, the examples of this that I've seen showed my exact street (!). Ideal if you're planning a raid of some sort for example.
Somewhat surprisingly, MSIE seems to have been given this facility via the Google toolbar. So if you have the Google Toolbar installed, GeoLocation works (!).
« Back to phpguru.org