0.6.5 • Published 11 months ago

@giscience/ohsome-js-utils v0.6.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

status: experimental

Why is it experimental? It not yet fully supports all response types that the ohsome API can return. So currently it mainly supports the functionality needed in the ohsome Dashboard app.

Info

This library contains JavaScript functions to help clients to use the Ohsome-Api for analyzing historical OpenStreetMap data.

Functionality includes

  • parsing and validation of request params
  • type-guards, functions to access result values, conversion functions to create CSV output from JSON results

Usage

Installation

$> npm install @giscience/ohsome-js-utils

You can use this library in different ways.

1. UMD single file bundle for browsers or nodejs scripts

<script src="dist/ohsome-js-utils.umd.min.js"></script>
// nodejs
var OhsomeJsUtils = require( '@giscience/ohsome-js-utils' );

2. ES2020 modules

import * as OhsomeJsUtils from '@giscience/ohsome-js-utils'
// or
import { OhsomeApi } from '@giscience/ohsome-js-utils'
0.6.5

11 months ago

0.6.4

11 months ago

0.6.3

11 months ago

0.6.2

11 months ago