Blog

Version 0.5 released

Oliver Roick

We are happy to announce the release of version 0.5 today. Functionality-wise, this version does not introduce anything new. However, we have made two major changes:

  • GeoKey 0.5 requires Postgres 9.4. The upgrade is necessary so we can use the very latest additions to Postgres, namely JSONB data type. We switch from hstore to JSONB because it allows to store, retrieve and update contributions more efficiently.
  • We simplified installing and updating GeoKey. You can now install and update GeoKey via PyPI. Have a look at the updated install instructions.

Changes to the API

We have made one minor change to the API. To ensure that our GeoJSON API can be consumed by a great variety of client applications, we have changed the way properties of a contribution are rendered. properties now only contains the data collected by the contributor, whereas the new meta field contains all sorts of meta information about the contribution.

{
    "id": 2966,
    "type": "Feature",
    "geometry": {
        "type": "Point",
        "coordinates": [
            -0.144415497779846,
            51.54671869005856
        ]
    },
    "properties": {
        "child_friendly": false,
        "name": "The Grafton",
        "address": "20 Prince of Wales Rd, London NW5 3LG"
    },
    "location": {
        "id": 2964,
        "name": null,
        "description": null,
        "created_at": "2014-09-19T15:51:32.790Z"
    },
    "meta": {
        "creator": {
            "id": 2,
            "display_name": "Oliver"
        },
        "isowner": true,
        "updator": null,
        "status": "active",
        "created_at": "2014-09-19T15:51:32.804Z",
        "updated_at": "2014-09-21T15:51:32.804Z",
        "version": 1,
        "category": 40
    },
    "comments": [],
    "review_comments": [],
    "media": []
}

Read the docs for more detailed information.