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

Return query metadata in properties of /grid #319

Merged
merged 2 commits into from
Jul 21, 2017
Merged

Return query metadata in properties of /grid #319

merged 2 commits into from
Jul 21, 2017

Conversation

HeyZoos
Copy link
Collaborator

@HeyZoos HeyZoos commented Jul 21, 2017

Add query metadata to the properties field of the root geojson returned by /grid.

{
  "features": [ ... ],
  "properties": {
    "buffer": 100,
    "dataset": "foo",
    "geom": null,
    "obs_date__ge": "2000-07-21",
    "obs_date__le": "2017-07-21",
    "resolution": 500
  },
  "type": "FeatureCollection"
}

@vforgione Given that this was a request just to make frontend dev a bit easier, I did not try to enforce proper datetime parsing as mentioned in #312. It will involve a lot of churn so I'll make that a separate PR.

@HeyZoos HeyZoos merged commit 92dfb40 into master Jul 21, 2017
@HeyZoos HeyZoos deleted the grid-metadata branch July 21, 2017 15:59
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.

1 participant