Skip to content

Instantly share code, notes, and snippets.

@SergeStinckwich
Last active August 29, 2015 14:04
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 SergeStinckwich/db394eb02a7fc56cd650 to your computer and use it in GitHub Desktop.
Save SergeStinckwich/db394eb02a7fc56cd650 to your computer and use it in GitHub Desktop.
Aviation accidents in 2014
|array b|
array := (NeoCSVReader on: (ZnEasy get: 'http://kathy.cartodb.com/api/v2/sql?format=csv&q=SELECT+*+FROM+aviation_accidents_in_2014') entity string readStream)
skipHeader;
upToEnd.
b := RTMapLocationBuilder new.
b shape circle
size: [ :v| v];
color: (Color red alpha: 0.3).
array do: [ :row | |fatalities|
fatalities := (row at: 5) asNumber.
b addPoint: (row at:8) asNumber @ (row at:9) asNumber value: fatalities].
b open.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment