Skip to main content

Geolocation for git

Project description

Geocommit allows you to attach geolocation information to your commits for later analysis.

Everything happens on your machine to protect your privacy, you you need to push the geo annotations explicitly if you want to share them with others.

Installation

Use pip (or easy_install):

pip install --upgrade geocommit

(If you don’t have pip yet, use easy_install pip to get it.)

Usage

Geo-enable a repository (installs a few hooks that enable keep track of your location for this repository):

git geo setup

Attach geo-information to HEAD:

git geo note

Fetch geolocation information from remote:

git geo fetch

Fetch and merge geolocation information:

git geo sync

Developing

git clone https://github.com/peritus/geocommit.git
python bootstrap.py
./bin/buildout

Crazy ideas

  • foursquare integration

  • 3rd party service with badges: * jetsetter badge (commits at five different airports) * mountain badge (commits at over 4000ft altitude)

  • geocommit + git-remote-couch + geocouch === awesome!

  • git geolog foo..bar > foobar.kml

  • Chrome/Safari extension to display google maps all over github

Geocommit data format (v1.0)

We store a number of keys with values in git notes or hg commits. There is a long and a short format. Both define a set of key/value pairs in no particular order. The format version defines the allowed keys.

<version> is a version number of the format x.y <key> is an alphanumeric lowercase identifier without spaces or other special characters except _ and - <value> must not contain a linebreak, “,” or “;”

The short format is: geocommit(<version>): <key> <value>, …, <key> <value>;

The long format is, terminated by an empty line:

geocommit (<version) <key>: <value> … <key>: <value>

Version 1.0 of the format defines the keys:
  • long (required) contains longitude value of a coordinate in WGS84

  • lat (required) contains latitude value of a coordinate in WGS84

  • src (required) contains the name of the data provider used to generate the geodata

  • alt (optional) contains altitude in metres

  • speed (optional) speed in metres / second

  • dir (optional) direction of travel

  • hacc (optional) horizontal accuracy of long/lat values in metres

  • vacc (optional) vertical accuracy of altitude value in metres

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geocommit-0.9.2.tar.gz (11.7 kB view details)

Uploaded Source

File details

Details for the file geocommit-0.9.2.tar.gz.

File metadata

  • Download URL: geocommit-0.9.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for geocommit-0.9.2.tar.gz
Algorithm Hash digest
SHA256 2097287ec8c8e6f0a9b56db2716ebb9f1e8cf45a5857bf54ba5a8a8c1347da9f
MD5 ca7afac17c75de0fb513f40c9b84ea8b
BLAKE2b-256 26da2418b9074d37051918b84c8f2c06253eb8fa2d5e0311b005bbfd2ae5a84c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page