Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliuste/german-hafas-osm-line-colour-points
Points generated using hafas-osm-line-colours from data fetched using osm-transit-lines in Germany.
https://github.com/juliuste/german-hafas-osm-line-colour-points
library openstreetmap public-transport
Last synced: about 2 months ago
JSON representation
Points generated using hafas-osm-line-colours from data fetched using osm-transit-lines in Germany.
- Host: GitHub
- URL: https://github.com/juliuste/german-hafas-osm-line-colour-points
- Owner: juliuste
- License: isc
- Created: 2019-01-08T13:57:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-05T10:56:23.000Z (over 5 years ago)
- Last Synced: 2024-11-13T03:00:30.202Z (2 months ago)
- Topics: library, openstreetmap, public-transport
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
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](https://img.shields.io/npm/v/german-hafas-osm-line-colour-points.svg)](https://www.npmjs.com/package/german-hafas-osm-line-colour-points)
[![Build Status](https://travis-ci.org/juliuste/german-hafas-osm-line-colour-points.svg?branch=master)](https://travis-ci.org/juliuste/german-hafas-osm-line-colour-points)
[![Greenkeeper badge](https://badges.greenkeeper.io/juliuste/german-hafas-osm-line-colour-points.svg)](https://greenkeeper.io/)
[![dependency status](https://img.shields.io/david/juliuste/german-hafas-osm-line-colour-points.svg)](https://david-dm.org/juliuste/german-hafas-osm-line-colour-points)
[![license](https://img.shields.io/github/license/juliuste/german-hafas-osm-line-colour-points.svg?style=flat)](license)
[![chat on gitter](https://badges.gitter.im/juliuste.svg)](https://gitter.im/juliuste)## Installation
```shell
npm install german-hafas-osm-line-colour-points
```## Usage
The module exposes an array which contains the contents of `points` in the following script
```js
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](https://github.com/juliuste/german-hafas-osm-line-colour-points/issues).