Giter Site home page Giter Site logo

derhuerst / gtfs-linked-connections-server Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 52 KB

[work in progress] – A Linked Connections server using PostgreSQL to serve GTFS.

Home Page: https://github.com/derhuerst/gtfs-linked-connections-server#gtfs-linked-connections-server

License: ISC License

JavaScript 100.00%
gtfs transit public-transport linked-data linked-connections rdf linked-geo-data linked-gtfs linked-open-data lod

gtfs-linked-connections-server's Introduction

gtfs-linked-connections-server

A Linked Connections server using PostgreSQL to serve GTFS.

npm version ISC-licensed minimum Node.js version support me via GitHub Sponsors chat with me on Twitter

Note: This projects follows the Linked Connections 2.0 draft as of 2020-03-18.

Installation

npm install derhuerst/gtfs-linked-connections-server # install from GitHub

Usage

Follow gtfs-via-postgres' instructions on importing data. Make sure to use the --stops-location-index flag.

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:

# 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.

gtfs-linked-connections-server's People

Contributors

derhuerst avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gtfs-linked-connections-server's Issues

add basic CLI

A basic serve-gtfs-as-lc CLI would prevent users from writing wrapper Node.js scripts.

mri is a good candidate for process.argv parsing.

refactor serve-linked-connections into serve-linked-tree

Building this prototype, I realised that the lib/serve-linked-connections abstraction (initiated by linkedconnections/linked-connections-server#53 (comment)) should actually be a "I'll find data, make me a TREE endpoint" abstraction.

I should

  1. refactor lib/serve-linked-connections into lib/serve-linked-tree,
  2. finish this prototype to make sure this API is ergonomic,
  3. pull out lib/serve-linked-tree into it's own repo/package, so that other projects can re-use it.

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.