Module @ogcapi-js/processes - v1.0.0

@ogcapi-js/processes

npm

A lightweight JavaScript client library for OGCAPI - Processes.

This library works with endpoints defined at:

See more details at the documentation.

Installation

npm install @ogcapi-js/processes

Usage

Node.js

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();

Browser

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();

Index

Classes

Interfaces

Type Aliases

Generated using TypeDoc