Use Goldberry to harvest a single basketball game and push it to CartoDB. WARNING This will pull ~2-3,000,000 points, so probably not for your typical free CartoDB account :)
✓ Published0🌍 Public
Aandrewxhill
Last edited Aug 31, 2015
Created on Aug 31, 2015
This example uses Goldberry to fetch a single NBA basketball game’s play-by-play data, then pushes roughly 2-3 million player-movement points to CartoDB. It first identifies Klay Thompson’s game log via the NBA stats API, selects a specific matchup from January 2014, and queries `locations_getmoments` for each event. The script extracts player and ball positions for moments after the second quarter, appends timestamps, and constructs SQL INSERT statements for CartoDB’s SQL API, storing spatial coordinates as `the_geom` for mapping.
AI-generated description