The geolocation component determines the user's current location. The latitude, longitude, altitude, and direction can all be bound to backing bean properties. Various settings can also be controlled through the component, such as the maximum allowable age for geolocation value, the timeout, whether and when to enable high precision, and whether or not to continue checking for changes in location after an initial value.

    <mobi:geolocation
      latitude="#{bean.latitude}"
      longitude="#{bean.longitude}"
      altitude="#{bean.altitude}"
      direction="#{bean.direction}"
      maximumAge="3600"
      timeout="30"
      enableHighPrecision="asNeeded"
      continuousUpdates="true"/>