Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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