Skip to content

Instantly share code, notes, and snippets.

@kathypennacchio
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kathypennacchio/6df8776d9bbcae909298 to your computer and use it in GitHub Desktop.
Save kathypennacchio/6df8776d9bbcae909298 to your computer and use it in GitHub Desktop.
var sql = 'SELECT ST_Buffer ...'; // The rest of our SQL query, as above
$.getJSON('http://urbanreviewer.cartodb.com/api/v2/sql/?format=GeoJSON&sql=' + sql, function (data) {
addBoundaryToLeaflet(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment