A clone of geojson provider for koop
Last updated 2 years ago by ntkog .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lobsterlabs/koop-provider-geojson 
SYNC missed versions from official npm registry.

Build Status Greenkeeper badge

Koop geojson Provider

This is a geojson that demonstrates how to build a Koop Provider. Full documentation is provided here.


where the URL changes / to | for including in the url. e.g.


To try this out, here are few example services:

If you want to write your own provider, simply fork this repository or copy the contents.


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 geojson 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:

  • npm install
  • DEPLOY=dev node server.js

Example API Query:

  • curl localhost:8080/geojson/FeatureServer/0/query?returnCountOnly=true


  • npm test

With Docker

  • docker build -t koop-provider-geojson .
  • docker run -it -p 8080:8080 koop-provider-geojson

Publish to npm

  • run npm init and update the fields
    • Choose a name like koop-provider-foo
  • run npm publish

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 2
Dependencies (4)
Dev Dependencies (4)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |