german-hafas-osm-line-colour-points

Points generated using hafas-osm-line-colours from data fetched using osm-transit-lines in Germany.

Usage no npm install needed!

<script type="module">
  import germanHafasOsmLineColourPoints from 'https://cdn.skypack.dev/german-hafas-osm-line-colour-points';
</script>

README

german-hafas-osm-line-colour-points

Points generated using hafas-osm-line-colours from data fetched using osm-transit-lines in Germany.

npm version Build Status Greenkeeper badge dependency status license chat on gitter

Installation

npm install german-hafas-osm-line-colour-points

Usage

The module exposes an array which contains the contents of points in the following script

const osmTransitLines = require('osm-transit-lines')
const { linesToPoints } = require('hafas-osm-line-colours')

const germanyBbox = {
    north: 56,
    west: 4,
    south: 47,
    east: 15
}
const lines = await osmTransitLines(germanyBbox, { logging: true, wikidata: true })
const points = linesToPoints(lines)

Contributing

If you found a bug or want to propose a feature, feel free to visit the issues page.