Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including friendly-public-transport-format with all npm packages installed. Try it out:

var friendlyPublicTransportFormat = require("friendly-public-transport-format")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

friendly-public-transport-format v1.2.1

A format for APIs, libraries and datasets containing and working with public transport data.

Friendly Public Transport Format (FPTF)

This repo outlines a format for APIs, libraries and datasets containing and working with public transport data. See the spec and the list of JS modules.

npm version CC-licensed chat on gitter

It tries to keep things simple:

  • JSON and ndjson only
  • a flat, intuitive representation of public transport timetables & infrastructure
  • conceptually inspired by the de-facto standard GTFS

Specifically, it trades

  • efficiency for consumability: GTFS sets feel like database dumps.
  • completeness for ease-of-use: Only basic attributes are required, most is optional.

Things still missing:

  • concise definitions
  • clear naming & recommendations for optional data

Contributing

We are looking forward to discuss & extend this format further! If you have a question or want to propose changes, go to the issues page. Keep our contributing guidelines in mind. Note that, by participating in this project, you commit to the code of conduct.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free