Code Monkey home page Code Monkey logo

koop-provider-opendatasoft's Introduction

koop-provider-opendatasoft

npm Build Status

A Koop provider plugin to load data from a OpenDataSoft data portal or the Data Network for public datasets.

This provider uses the OpenDataSoft V2 API to request raw data in GeoJSON format.

No configuration is required.

Installation

npm install koop-provider-opendatasoft

Use

Register the provider into your Koop app

const Koop = require("koop");
const opendatasoft = require("koop-provider-opendatasoft");

const koop = new Koop();
koop.register(opendatasoft);
koop.server.listen(8080);

For example, with the default Geoservices output, the OpenDataSoft data is available in every route like:

"Geoservices" output routes for the "opendatasoft" provider         Methods
------------------------------------------------------------------  ---------
/opendatasoft/:host/:id/FeatureServer/:layer/:method                GET, POST
/opendatasoft/:host/:id/FeatureServer/layers                        GET, POST
/opendatasoft/:host/:id/FeatureServer/:layer                        GET, POST

Parameters

This provider requires two parameters in the route URL.

host

The host parameter is the host name of the data repository. It could be your portal or OpenDataSoft's public dataset repository (data.opendatasoft.com).

id

The id parameter is the dataset identifier of each OpenDatasoft dataset. It is available at the dataset's information page, for example, like this.

Query

The following query parameters are supported:

  • token
  • where
  • outFields
  • resultOffset
  • resultRecordCount

Example

Get all records from the dataset Local Air Quality @ Town of Chapel Hill from the Data Network

GET http://localhost:8080/opendatasoft/rest/services/data.opendatasoft.com/local-air-quality@townofchapelhill/FeatureServer/0/query

License

MIT

koop-provider-opendatasoft's People

Contributors

dependabot[bot] avatar haoliangyu avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.