A lightweight JavaScript client library for OGCAPI - Processes.
This library works with endpoints defined at:
See more details at the documentation.
npm install @ogcapi-js/processes
This library uses the global fetch function for HTTP requests. Please consider using isomorphic-fetch for polyfill.
require('isomorphic-fetch');
const { ProcessesService } = require('@ogcapi-js/processes');
// create a new service client
const service = new ProcessesService({
baseUrl: 'https://ogcapi.service.com'
});
// get all processes from the service
const collections = await services.getProcesses();
Modern browsers already support the global fetch
function so there is no need to polyfill.
import { ProcessesService } from `@ogcapi-js/processes`;
// create a new service client
const service = new ProcessesService({
baseUrl: 'https://ogcapi.service.com'
});
// get all processes from the service
const processes = await services.getProcesses();
Generated using TypeDoc