Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

metadata #81

wants to merge 1 commit into from

Conversation

missinglink
Copy link
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
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
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