<commit_before># flight-location [![Build Status](https://secure.travis-ci.org/cameronhunter/flight-location.png)](http://travis-ci.org/cameronhunter/flight-location)

A [Flight](https://github.com/twitter/flight) component for geo-location.

## Installation

```bash
bower install --save flight-location
```

## Example

```javascript
define(['flight-location'], function(Location) {

  // Setup the store
  Location.attachTo(document, {
    enableHighAccuracy: false,
    timeout: 500,
    maximumAge: 500
  });

  // Listen for geo-location updates
  $(document).on('location-current', function(e, data) {
    console.log(e, data);
  });

  // Listen for errors
  $(document).on('location-error', function(e, data) {
    console.error(e, data);
  });<commit_msg>Updating README<commit_after># flight-location

A [Flight](https://github.com/twitter/flight) component for geo-location.

## Installation

```bash
bower install --save flight-location
```

## Example

```javascript
define(['flight-location'], function(Location) {

  Location.attachTo(document, {
    enableHighAccuracy: false,
    timeout: 500,
    maximumAge: 500
  });

  // Listen for geo-location updates
  $(document).on('location-current', function(e, data) {
    console.log(e, data);
  });

  // Listen for errors
  $(document).on('location-error', function(e, data) {
    console.error(e, data);
  });

  // Start geo-location updates
  $(document).trigger('location-watch');
{'fraction_non_alphanumeric': 0.1695382494831151, 'fraction_numerical': 0.008270158511371467, 'mean_word_length': 4.130742049469965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2026239', 'n_tokens_mistral': 491, 'n_tokens_neox': 447, 'n_words': 92}