Skip to content

Instantly share code, notes, and snippets.

@benheb
Last active December 11, 2015 23:18
Show Gist options
  • Save benheb/4675272 to your computer and use it in GitHub Desktop.
Save benheb/4675272 to your computer and use it in GitHub Desktop.
//basic
params {
sources: {
twitter: {keywords: ['snow', 'rain', 'wind']}
}
period: {
start: t1, end: t2
}
limit: 300 //for testing purposes, replace with period
style: {
breaks: null,
classificationBreaks: null,
colors: null,
fill: "rgb(5, 112, 176)",
shape: "STYLE_CIRCLE",
stroke: {
color: "rgb(255, 255, 255)",
width: 2
}
}
}
//aggregation and multiple sources
params {
sources: {
twitter: {keywords: ['clouds']},
foursquare: {keywords: ['sunset']}
}
period: {
start: t1, end: t2
}
aggregate: {
type: 'point',
empty_boundaries: true,
boundary: '1 km grid cells'
}
limit: 300 //for testing purposes, replace with period
style: {
breaks: 5,
classificationBreaks: "Quantile",
colors: [array of colors],
fill: null,
shape: "STYLE_CIRCLE",
stroke: {
color: "rgb(255, 255, 255)",
width: 2
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment