Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/gtfs-linked-connections-server
[work in progress] – A Linked Connections server using PostgreSQL to serve GTFS.
https://github.com/derhuerst/gtfs-linked-connections-server
gtfs linked-connections linked-data linked-geo-data linked-gtfs linked-open-data lod postgresql public-transport rdf transit
Last synced: about 1 month ago
JSON representation
[work in progress] – A Linked Connections server using PostgreSQL to serve GTFS.
- Host: GitHub
- URL: https://github.com/derhuerst/gtfs-linked-connections-server
- Owner: derhuerst
- License: isc
- Created: 2021-04-06T17:05:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-10T11:56:04.000Z (over 2 years ago)
- Last Synced: 2024-10-10T00:42:35.753Z (2 months ago)
- Topics: gtfs, linked-connections, linked-data, linked-geo-data, linked-gtfs, linked-open-data, lod, postgresql, public-transport, rdf, transit
- Language: JavaScript
- Homepage: https://github.com/derhuerst/gtfs-linked-connections-server#gtfs-linked-connections-server
- Size: 50.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# gtfs-linked-connections-server
**A [Linked Connections](https://linkedconnections.org) server using [PostgreSQL](https://www.postgresql.org) to serve [GTFS](https://gtfs.org/reference/static).**
[![npm version](https://img.shields.io/npm/v/gtfs-linked-connections-server.svg)](https://www.npmjs.com/package/gtfs-linked-connections-server)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/gtfs-linked-connections-server.svg)
![minimum Node.js version](https://img.shields.io/node/v/gtfs-linked-connections-server.svg)
[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)
[![chat with me on Twitter](https://img.shields.io/badge/chat%20with%20me-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst)*Note:* This projects follows the [Linked Connections 2.0 draft](https://docs.google.com/document/d/1d-1zT-6kkRNEn781VlvojH6ea-EHtwB1-BXT9uOyfTk/edit?ts=5e7fce43) as of `2020-03-18`.
## Installation
```shell
npm install derhuerst/gtfs-linked-connections-server # install from GitHub
```## Usage
Follow [`gtfs-via-postgres`' instructions on importing data](https://github.com/public-transport/gtfs-via-postgres/blob/main/readme.md). Make sure to use the `--stops-location-index` flag.
```shell
psql -c 'create database gtfs'
export PGDATABASE=gtfs# import GTFS into PostgreSQL
npm install -D gtfs-via-postgres
npm exec -- gtfs-to-sql --require-dependencies -- gtfs/*.txt | psql -b
```Then serve the imported data as Linked Connections via HTTP:
```shell
# start HTTP server that serves Linked Connections
npm install gtfs-linked-connections-server
npm exec -- serve-gtfs-as-lc
```## Contributing
If you have a question or need support using `gtfs-linked-connections-server`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use [the issues page](https://github.com/derhuerst/gtfs-linked-connections-server/issues).