jgravois / koop-walmart

fetch walmart georss and display it in ArcGIS Online
Other
2 stars 3 forks source link
koop-provider koopjs

Build Status Greenkeeper badge

Koop Walmart Provider

This provider was created to support the Hurricane Harvey relief effort by helping folks identify Walmart stores that have been closed. The data source for this provider is Walmart's GeoRSS feed.

View it live.

If you want to write your own provider, simply fork this repository or copy the contents. Full documentation is provided here.

Files

File Description
index.js Mandatory Configures provider for usage by Koop
model.js Mandatory Translates remote API to GeoJSON
routes.js Optional Specifies additional routes to be handled by this provider
controller.js Optional Handles additional routes specified in routes.js
server.js Optional Reference implementation for the provider
test/model-test.js Optional tests the getData function on the model
test/fixtures/input.json Optional a sample of the raw input from the 3rd party API
config/default.json Optional used for advanced configuration, usually API keys.

Test it out

Run server:

Example API Query:

Tests:

With Docker

Publish to npm