Giter Site home page Giter Site logo

derhuerst / merge-vbb-stations Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 58 KB

Heuristic to find VBB stations & stops that should be one.

Home Page: https://derhuerst.github.io/merge-vbb-stations/

License: ISC License

JavaScript 100.00%
vbb bvg berlin public-transport transit clustering

merge-vbb-stations's Introduction

merge-vbb-stations

Heuristic to find VBB stations & stops that should be one. Check out the automatic report!

npm version build status ISC-licensed support me via GitHub Sponsors chat with me on Twitter

Installing

npm install merge-vbb-stations

Usage

const analyze = require('merge-vbb-stations')

const s1 = {
	type: 'station',
	id: '900000003174',
	name: 'U Turmstr. (Berlin) [Bus Turmstr.]',
	coordinates: {latitude: 52.5263, longitude: 13.341988},
	weight: 5533.75,
	stops: [
		{
			type: 'stop',
			id: '070101000700',
			name: 'U Turmstr. (Berlin) [Bus Turmstr.]',
			station: '900000003174',
			coordinates: {latitude: 52.5263, longitude: 13.341988}
		}
		// …
	]
}

const s2 = {
	type: 'station',
	id: '900000003104',
	name: 'U Turmstr. (Berlin)',
	coordinates: {latitude: 52.525938, longitude: 13.341417},
	weight: 2408,
	stops: [
		{
			type: 'stop',
			id: '070201092701',
			name: 'U Turmstr. (Berlin)',
			station: '900000003104',
			coordinates: {latitude: 52.525938, longitude: 13.341417}
		}
	]
}

analyze(s1, s2)
{
	op: 'merge',
	src: /* s1 */,
	dest: /* s2 */,
	stopName: 'Bus Turmstr.'
}

API

analyze(station1, station2) will return either null (don't merge) or an object. The object looks like this:

  • op: right now, this can only be analyze.MERGE
  • src: station to merge from
  • dest: station to merge into
  • stopName: which name to use for the stops of src; if null, use the stops's original name

todo: s1.coordinates & s2.coordinates

Contributing

If you have a question or have difficulties using merge-vbb-stations, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

merge-vbb-stations's People

Contributors

derhuerst avatar greenkeeper[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

merge-vbb-stations's Issues

An in-range update of vbb-stations is breaking the build 🚨

The devDependency vbb-stations was updated from 7.1.0 to 7.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

vbb-stations is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of vbb-stations is breaking the build 🚨

Version 6.5.0 of vbb-stations was just published.

Branch Build failing 🚨
Dependency vbb-stations
Current Version 6.4.1
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

vbb-stations is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of vbb-stations is breaking the build 🚨

Version 6.4.1 of vbb-stations was just published.

Branch Build failing 🚨
Dependency vbb-stations
Current Version 6.4.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

vbb-stations is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of vbb-lines-at is breaking the build 🚨

Version 3.14.0 of vbb-lines-at was just published.

Branch Build failing 🚨
Dependency vbb-lines-at
Current Version 3.13.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

vbb-lines-at is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of vbb-lines-at is breaking the build 🚨

Version 3.6.0 of vbb-lines-at just got published.

Branch Build failing 🚨
Dependency vbb-lines-at
Current Version 3.5.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

vbb-lines-at is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 1 commits.

  • a1c0da1 update to latest data, 3.6.0

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of vbb-stations is breaking the build 🚨

The devDependency vbb-stations was updated from 7.0.0 to 7.1.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

vbb-stations is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of vbb-lines-at is breaking the build 🚨

The dependency vbb-lines-at was updated from 3.19.0 to 3.20.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

vbb-lines-at is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 1 commits.

  • 48b2085 rebuild with latest data, 3.20.0

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of vbb-stations is breaking the build 🚨

Version 5.5.0 of vbb-stations just got published.

Branch Build failing 🚨
Dependency vbb-stations
Current Version 5.4.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As vbb-stations is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of tape is breaking the build 🚨

Version 4.9.1 of tape was just published.

Branch Build failing 🚨
Dependency tape
Current Version 4.9.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

tape is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 10 commits.

  • 050b318 v4.9.1
  • 73232c0 [Dev Deps] update js-yaml
  • 8a2d29b [Deps] update has, for-each, resolve, object-inspect
  • c6f5313 [Tests] add eclint and eslint, to enforce a consistent style
  • 45788a5 [Dev Deps] update concat-stream
  • ec4a71d [fix] Fix bug in functionName regex during stack parsing
  • 7261ccc Merge pull request #433 from mcnuttandrew/add-trb
  • 6cbc53e Add tap-react-browser
  • 9d501ff [Dev Deps] use ~ for dev deps; update to latest nonbreaking
  • 24e0a8d Fix spelling of "parameterize"

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of vbb-stations is breaking the build 🚨

Version 5.6.0 of vbb-stations just got published.

Branch Build failing 🚨
Dependency vbb-stations
Current Version 5.5.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As vbb-stations is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of vbb-lines-at is breaking the build 🚨

Version 3.13.0 of vbb-lines-at was just published.

Branch Build failing 🚨
Dependency vbb-lines-at
Current Version 3.12.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

vbb-lines-at is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of vbb-stations is breaking the build 🚨

Version 5.7.0 of vbb-stations was just published.

Branch Build failing 🚨
Dependency vbb-stations
Current Version 5.6.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

vbb-stations is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of vbb-lines-at is breaking the build 🚨

Version 3.8.0 of vbb-lines-at was just published.

Branch Build failing 🚨
Dependency vbb-lines-at
Current Version 3.7.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

vbb-lines-at is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.