Skip to content

gavinr/koop-provider-nba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f80936a · Aug 10, 2017

History

6 Commits
Aug 4, 2017
Aug 4, 2017
Aug 4, 2017
Aug 4, 2017
Aug 4, 2017
Aug 4, 2017
Aug 4, 2017
Aug 4, 2017
Aug 10, 2017
Aug 4, 2017
Aug 4, 2017
Aug 7, 2017
Aug 4, 2017
Aug 7, 2017
Aug 7, 2017
Aug 4, 2017
Aug 8, 2017

Repository files navigation

Build Status

Koop NBA Provider

This is a Koop Provider that exposes NBA Shot Charts as Feature Services, to be used throughout the ArcGIS platform.

Test it out

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

Deployment Notes

  • Note that the NBA Stats API seems to block Amazon AWS, Heroku, and maybe other cloud VM providers. More info here.