Canvas 2D Web Apps/Geolocation

In HTML5, web apps are allowed to access the geolocation of a device. W3C has defined the Geolocation API Specification. In the Mozilla Developer Network, see Using geolocation. Apple provides information in the article Getting Geographic Location in the Safari Developer Library.