pbf2json
pbf2json copied to clipboard
metadata
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
}
}
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.
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.