Skip to content

metadata#81

Open
missinglink wants to merge 1 commit intomasterfrom
metadata
Open

metadata#81
missinglink wants to merge 1 commit intomasterfrom
metadata

Conversation

@missinglink
Copy link
Copy Markdown
Member

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
Copy link
Copy Markdown
Member Author

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.

@orangejulius
Copy link
Copy Markdown
Member

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 pelias/pelias#351.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants