{"id":21558139,"url":"https://github.com/koopjs/koop-provider-geojson","last_synced_at":"2025-06-13T10:34:36.390Z","repository":{"id":43187892,"uuid":"102136589","full_name":"koopjs/koop-provider-geojson","owner":"koopjs","description":"GeoJSON provider for Koop","archived":false,"fork":false,"pushed_at":"2022-12-09T21:36:17.000Z","size":148,"stargazers_count":6,"open_issues_count":8,"forks_count":5,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-24T09:38:17.353Z","etag":null,"topics":["koop-provider"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koopjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-01T17:22:25.000Z","updated_at":"2021-12-28T15:13:05.000Z","dependencies_parsed_at":"2023-01-25T17:15:52.853Z","dependency_job_id":null,"html_url":"https://github.com/koopjs/koop-provider-geojson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-provider-geojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-provider-geojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-provider-geojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-provider-geojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koopjs","download_url":"https://codeload.github.com/koopjs/koop-provider-geojson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199356,"owners_count":21063658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["koop-provider"],"created_at":"2024-11-24T08:14:05.784Z","updated_at":"2025-04-10T10:41:46.227Z","avatar_url":"https://github.com/koopjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koop geojson Provider\n\nThis is a geojson that demonstrates how to build a Koop Provider. Full documentation is provided [here](https://koopjs.github.io/docs/specs/provider/).\n\n`/geojson/{url|pipe|path}/FeatureServer/0/query`\n\nwhere the `URL` changes `/` to `|` for including in the url. e.g.\n\n`example.com%7Cshares%7C6de6fe4ccdea85b8.geojson`\n\nTo try this out, here are few example services:\n\n- [Harvey crowdsource data](https://howtfcbn0c.execute-api.us-east-1.amazonaws.com/latest/geojson/web.fulcrumapp.com%7Cshares%7C6de6fe4ccdea85b8.geojson/FeatureServer/0) \u0026 [map](https://www.arcgis.com/home/webmap/viewer.html?url=https://howtfcbn0c.execute-api.us-east-1.amazonaws.com/latest/geojson/web.fulcrumapp.com%7Cshares%7C6de6fe4ccdea85b8.geojson/FeatureServer/0)\n- [DC boundary](https://howtfcbn0c.execute-api.us-east-1.amazonaws.com/latest/geojson/raw.githubusercontent.com|unitedstates|districts|gh-pages|states|DC|shape.geojson/FeatureServer/0) \u0026 [map](https://www.arcgis.com/home/webmap/viewer.html?url=https://howtfcbn0c.execute-api.us-east-1.amazonaws.com/latest/geojson/raw.githubusercontent.com|unitedstates|districts|gh-pages|states|DC|shape.geojson/FeatureServer/0)\n- [US Boundaries](https://howtfcbn0c.execute-api.us-east-1.amazonaws.com/latest/geojson/eric.clst.org|wupl|Stuff|gz_2010_us_outline_500k.json/FeatureServer/0) \u0026  [map](http://www.arcgis.com/home/webmap/viewer.html?url=https://howtfcbn0c.execute-api.us-east-1.amazonaws.com/latest/geojson/eric.clst.org|wupl|Stuff|gz_2010_us_outline_500k.json/FeatureServer/0)\n- [US Counties](https://howtfcbn0c.execute-api.us-east-1.amazonaws.com/latest/geojson/eric.clst.org|wupl|Stuff|gz_2010_us_050_00_500k.json/FeatureServer/0) \u0026 [map](http://www.arcgis.com/home/webmap/viewer.html?extent=-120.20,30.055,-117.19,40.06\u0026url=https://howtfcbn0c.execute-api.us-east-1.amazonaws.com/latest/geojson/eric.clst.org|wupl|Stuff|gz_2010_us_050_00_500k.json/FeatureServer/0)\n\nIf you want to write your own provider, simply fork this repository or copy the contents.\n\n## Files\n\n| File | | Description |\n| --- | --- | --- |\n| `index.js` | Mandatory | Configures provider for usage by Koop |\n| `model.js` | Mandatory | Translates remote API to GeoJSON |\n| `routes.js` | Optional | Specifies additional routes to be handled by this provider |\n| `controller.js` | Optional | Handles additional routes specified in `routes.js` |\n| `server.js` | Optional | Reference implementation for the provider |\n| `test/model-test.js` | Optional | tests the `getData` function on the model |\n| `test/fixtures/input.json` | Optional | a geojson of the raw input from the 3rd party API |\n| `config/default.json` | Optional | used for advanced configuration, usually API keys. |\n\n## Test it out\nRun server:\n- `npm install`\n- `DEPLOY=dev node server.js`\n\nExample API Query:\n- `curl localhost:8080/geojson/FeatureServer/0/query?returnCountOnly=true`\n\nTests:\n- `npm test`\n\n## With Docker\n\n- `docker build -t koop-provider-geojson .`\n- `docker run -it -p 8080:8080 koop-provider-geojson`\n\n## Publish to npm\n- run `npm init` and update the fields\n  - Choose a name like `koop-provider-foo`\n- run `npm publish`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoopjs%2Fkoop-provider-geojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoopjs%2Fkoop-provider-geojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoopjs%2Fkoop-provider-geojson/lists"}