pbf2json icon indicating copy to clipboard operation
pbf2json copied to clipboard

metadata

Open missinglink opened this issue 5 years ago • 2 comments

optionally print record metadata such as version and timestamp by specifying the --metadata=true flag.

Eg.

{
  "id": 26882421,
  "type": "node",
  "lat": 52.484265400000005,
  "lon": 13.320669100000002,
  "tags": {
    "amenity": "fuel",
    "name": "Aral",
    "wheelchair": "yes"
  },
  "meta": {
    "version": 10,
    "timestamp": 1450987152
  }
}

missinglink avatar Jun 13 '19 15:06 missinglink

I was hoping that the version information would be useful for determining the popularity of a record, although I'm not sure about that...

On the fence as to whether to merge this or not, it wouldn't break anything because its disabled by default.

missinglink avatar Jun 13 '19 15:06 missinglink

It's a useful feature for sure. While the version number might not be a super strong signal, the timestmap of last edit certainly is, and was brought up back in https://github.com/pelias/pelias/issues/351.

orangejulius avatar Jun 13 '19 15:06 orangejulius