Last active
August 29, 2015 14:04
-
-
Save SergeStinckwich/db394eb02a7fc56cd650 to your computer and use it in GitHub Desktop.
Aviation accidents in 2014
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|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