Skip to content

Instantly share code, notes, and snippets.

@javierarce
Created February 18, 2015 12:51
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 javierarce/13fcd10b00b98da64264 to your computer and use it in GitHub Desktop.
Save javierarce/13fcd10b00b98da64264 to your computer and use it in GitHub Desktop.
curl 'https://rochoa.cartodb.com/api/v1/map' -H 'Origin: null' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Connection: keep-alive' --data-binary '{"layers":[{"type":"http","options":{"urlTemplate":"https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png","subdomains":"abcd"}},{"type":"named","options":{"name":"tpl_9d99e242_5f9a_11e4_bc5f_0e853d047bba"}},{"type":"torque","options":{"sql":"select * from rochoa.car_log_nurburgring_2013_05_30","cartocss":"/** torque visualization */\n\nMap {\n-torque-frame-count:512;\n-torque-animation-duration:30;\n-torque-time-attribute:\"cartodb_id\";\n-torque-aggregation-function:\"count(cartodb_id)\";\n-torque-resolution:2;\n-torque-data-aggregation:linear;\n}\n\n#log_20140713_090002_20nurburgring_20nordschlei{\n comp-op: source-over;\n marker-fill-opacity: 0.8;\n marker-line-color: #FFF;\n marker-line-width: 0;\n marker-line-opacity: 1;\n marker-type: ellipse;\n marker-width: 4;\n marker-fill: #F11810;\n}\n#log_20140713_090002_20nurburgring_20nordschlei[frame-offset=1] {\n marker-width:6;\n marker-fill-opacity:0.4; \n}"}}]}' --compressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment