Code Monkey home page Code Monkey logo

sometimemachine's Introduction

sometimemachine

Analysis of OpenStreetMap History.

Latest weekly changesets on planet.openstreetmap.org includes all changesets for the recorded history of OpenStreetMap as a 4.2G XML file.

Changesets have:

  • uid
  • id
  • bbox
  • num_changes
  • date_opened
  • date_closed

This code is inspired by ChangesetMD, with a few differences:

  • SQLite instead of Postgres
  • expat instead of sax.handler
  • more compact schema for smaller databases
  • BSD instead of GPL

Initialize an SQLite file:

cat schema.sql | sqlite3 changesets.sqlite

Import a changeset dump into sqlite:

python stm.py changesets-latest.osm[.bz2] changesets.sqlite

Indexes

 create index uid_idx on osm_changeset (user_id);

Products

Videos: OSM Edits, centers of OSM edits.

unique_per_day.js

two_edit_per_month.js

Graphs

These guys you can generate with scripts but are too heavy to put on gist.

When users register versus how likely they are to contribute for more than a year. Nearly all of the early users of OpenStreetMap contributed more than a year, while users who started contributing 2 years ago are much less likely.

Changesets in the last 3 months (dark red), last year (orange), all time (light orange)

User lives histogram. Of course, the vast majority of users last less than two days. It's an exponential distribution from there on with no clear peaks.

sometimemachine's People

Contributors

tmcw avatar thadk avatar mvexel avatar

Stargazers

Cat  avatar Matthieu Viry avatar Jeremy Kidwell avatar Tod Robbins avatar 거윈 | Win avatar  avatar  avatar Tomas Apodaca avatar Jean-Louis ZIMMERMANN avatar Dennis Watson avatar amritkarma avatar Sam Martin avatar Satoshi IIDA avatar Alan McConchie avatar Joe Larson avatar Derek Watkins avatar Aitor García Rey avatar Seth Vincent avatar Jim Vallandingham avatar Ian Villeda avatar Coleman McCormick avatar Drew Dara-Abrams avatar Frédéric Junod avatar

Watchers

 avatar Alex Barth avatar James Cloos avatar Alan McConchie avatar Sam Martin avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.