Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/conveyal/otp.js
OTP Javascript Client & Data Bindings
https://github.com/conveyal/otp.js
Last synced: about 2 months ago
JSON representation
OTP Javascript Client & Data Bindings
- Host: GitHub
- URL: https://github.com/conveyal/otp.js
- Owner: conveyal
- License: mit
- Created: 2013-07-15T20:12:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-01-14T23:38:26.000Z (over 4 years ago)
- Last Synced: 2024-05-08T06:41:51.753Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.29 MB
- Stars: 19
- Watchers: 7
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Lists
- awesome-transit - OpenTripPlanner.js - A Javascript-based client for OpenTripPlanner (no longer under development) (Uncategorized / Uncategorized)
- awesome-transit - OpenTripPlanner.js - A Javascript-based client for OpenTripPlanner (no longer under development) (Uncategorized / Uncategorized)
README
# Note: This project is no longer under active development.
Conveyal no longer uses this library internally. The OpenTripPlanner project has two client side libraries that are intended to replace this library.
* [OTP-UI](https://github.com/opentripplanner/otp-ui)
* [OTP-RR](https://github.com/opentripplanner/otp-react-redux)# otp.js
A lightweight library for modular development of modern [OpenTripPlanner](http://opentripplanner.org) front-end interfaces.
The core of the library is a collection of data models and views (`lib/`), written using backbone.js, that encapsulate OTP API requests and responses (OTP API version 0.10+). Also included is a simple web client (`client/`) that shows how otp.js can be used to create a functional OTP front-end.
otp.js uses [Component](https://github.com/component/component) for dependency and build process management.
## Getting Started
To get started with otp.js and the sample web client:
1. Clone the otp.js repo to your local machine using `git clone https://github.com/conveyal/otp.js.git`
2. Install [npm](https://www.npmjs.org/) if needed. In the otp.js project directory, run `npm install` to install Component and set up the development environment (this in configured in package.json).
3. Run `make`, which invokes Component to download any required dependencies and package them together with the local otp.js code (a copy of the packaged code is put in `client/build/`).
4. Copy the client configuration template from `client/config.js.template` to `client/config.js`; update `client/config.js` to reflect your specific setup including OTP backend, Mapbox keys, geocoder endpoints, etc.
5. Deploy the client to the web by copying the `client` directory to your web server.