This is a Koop Provider that exposes NBA Shot Charts as Feature Services, to be used throughout the ArcGIS platform.
Run server:
npm install
npm start
Example API Query:
curl localhost:8080/nba/201566/FeatureServer/0/query?returnCountOnly=true
Player names also work (last name first):
curl localhost:8080/nba/201566/FeatureServer/0/query?returnCountOnly=true
Tests:
(not currently working)
npm test
- Note that the NBA Stats API seems to block Amazon AWS, Heroku, and maybe other cloud VM providers. More info here.