The Geolocation Working Group has published a Working Draft of Geofencing API. This specification defines an API that lets webapps setup geographic boundaries around specific locations and then receive notifications when the hosting device enters or leaves those areas. Learn more about the Ubiquitous Web Applications Activity.