All Projects → derhuerst → db-stations

derhuerst / db-stations

Licence: ISC license
A list of DB stations.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to db-stations

db-hafas
JavaScript client for the Deutsche Bahn HAFAS API.
Stars: ✭ 54 (+260%)
Mutual labels:  transit, germany, transport, deutsche-bahn
citylines
Citylines.co is a collaborative platform for mapping the transit systems of the world!
Stars: ✭ 53 (+253.33%)
Mutual labels:  transit, transport
transxchange2gtfs
tool to convert transxchange data into a GTFS feed
Stars: ✭ 26 (+73.33%)
Mutual labels:  transit, transport
ideas
How to make public transport more comfortable, more accessible, more transparent?
Stars: ✭ 35 (+133.33%)
Mutual labels:  transit, transport
waka
Your realtime guide to public transport in New Zealand
Stars: ✭ 37 (+146.67%)
Mutual labels:  transit, transport
TrenitaliaAPI
Reverse engineering dell'API dell'app di Trenitalia
Stars: ✭ 32 (+113.33%)
Mutual labels:  transit, transport
open-bus
🚌 Analysing Israel's public transport data
Stars: ✭ 65 (+333.33%)
Mutual labels:  transit, transport
public-transit-tools
Tools for working with GTFS public transit data in ArcGIS
Stars: ✭ 126 (+740%)
Mutual labels:  transit, transport
European Transport Modules
[DISCONTINUED in favour of public-transport-operators] Collection of european transport JavaScript modules.
Stars: ✭ 9 (-40%)
Mutual labels:  transit, transport
Vbb Modules
List of JavaScript modules for Berlin & Brandenburg public transport.
Stars: ✭ 47 (+213.33%)
Mutual labels:  transit, transport
Vbb Cli
A CLI for Berlin & Brandenburg public transport.
Stars: ✭ 70 (+366.67%)
Mutual labels:  transit, transport
european-transport-operators
NOT UP-TO-DATE ANYMORE, UNMAINTAINED. CHECK european-transport-feeds INSTEAD. List of european long-distance transport operators, available API endpoints, GTFS feeds and client modules.
Stars: ✭ 47 (+213.33%)
Mutual labels:  transit, transport
vbb-hafas
A JavaScript client for Berlin & Brandenburg public transport HAFAS API.
Stars: ✭ 28 (+86.67%)
Mutual labels:  transit, transport
matsim-sbb-extensions
matsim swiss rail
Stars: ✭ 23 (+53.33%)
Mutual labels:  transit, transport
bvg-topological-map
BVG transport map as a nice SVG.
Stars: ✭ 15 (+0%)
Mutual labels:  transit, transport
vbb-rest
An HTTP API for Berlin & Brandenburg public transport.
Stars: ✭ 104 (+593.33%)
Mutual labels:  transit, transport
Tidytransit
R package for working with the General Transit Feed Specification (GTFS)
Stars: ✭ 84 (+460%)
Mutual labels:  transit, transport
Hafas Client
JavaScript client for HAFAS public transport APIs.
Stars: ✭ 125 (+733.33%)
Mutual labels:  transit, transport
gofast
High performance transport protocol for distributed applications.
Stars: ✭ 19 (+26.67%)
Mutual labels:  transport
Transitland Processing Animation
Animating scheduled transit trips using the Transitland API and Processing
Stars: ✭ 251 (+1573.33%)
Mutual labels:  transit

db-stations

A collection of all stations of Deutsche Bahn, computed from open data.

Warning: This module does not contain stations without an IBNR.

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

Installing

npm install db-stations

Note: This Git repo does not contain the data, but the npm package does.

Usage

readStations() returns a readable stream in object mode, emitting Friendly Public Transport Format station objects.

import {readStations} from 'db-stations'

for await (const station of readStations()) {
	console.log(station)
}
{
	type: 'station',
	id: '8000007', // EVA number
	ril100: 'FALZ', // RIL100/RL100/DS100 code
	nr: 133, // DB internal
	name: 'Alzey',
	weight: 73.1,
	location: {
		type: 'location',
		latitude: 49.7502,
		longitude: 8.109749
	},
	operator: {
		type: 'operator',
		id: 'zweckverband-schienenpersonennahverkehr-rheinland-pfalz-sud',
		name: 'ZPNV Süd'
	},
	address: {
		city: 'Alzey',
		zipcode: '55232',
		street: 'Bahnhofstr. 30'
	}
}
// and a lot more…

readFullStations() returns a readable stream in object mode, emitting Friendly Public Transport Format station objects with more information.

import {readFullStations} from 'db-stations'

for await (const station of readFullStations()) {
	console.log(station)
}
{
	type: 'station',
	id: '8000007',
	additionalIds: [],
	ril100: 'FALZ',
	nr: 133,
	name: 'Alzey',
	weight: 73.1,
	location: {
		type: 'location',
		latitude: 49.7502,
		longitude: 8.109749
	},
	operator: {
		type: 'operator',
		id: 'zweckverband-schienenpersonennahverkehr-rheinland-pfalz-sud',
		name: 'ZPNV Süd'
	},
	address: {
		city: 'Alzey',
		zipcode: '55232',
		street: 'Bahnhofstr. 30'
	},
	category: 3,
	priceCategory: 3,
	hasParking: true,
	hasBicycleParking: true,
	hasLocalPublicTransport: true,
	hasPublicFacilities: false,
	hasLockerSystem: false,
	hasTaxiRank: true,
	hasTravelNecessities: false,
	hasSteplessAccess: 'partial',
	hasMobilityService: 'no',
	hasWiFi: false,
	hasTravelCenter: false,
	hasRailwayMission: false,
	hasDBLounge: false,
	hasLostAndFound: false,
	hasCarRental: false,
	federalState: 'Rheinland-Pfalz',
	regionalbereich: {
		number: 5,
		name: 'RB Mitte',
		shortName: 'RB M'
	},
	timeTableOffice: {
		email: '[email protected]',
		name: 'Bahnhofsmanagement Mainz'
	},
	szentrale: {
		number: 24,
		publicPhoneNumber: '06131/151055',
		name: 'Mainz Hbf'
	},
	stationManagement: {
		number: 184,
		name: 'Mainz'
	},
	ril100Identifiers: [ {
		rilIdentifier: 'FALZ',
		isMain: true,
		hasSteamPermission: true,
		geographicCoordinates: {
			type: 'Point',
			coordinates: [
				8.109684725,
				49.750267695
			]
		}
	} ]
}

Related

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Data License

The generated data in data.ndjson has originally been published under Creative Commons Attribution 4.0 International by Deutsche Bahn (DB).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].