Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

opentripplanner-api-thrift

Overview

This subproject contains a Thrift API to OpenTripPlanner. The Thrift API was designed and built to support lower-level queries than the already-exposed REST JSON/XML API. For example, the Thrift interface supports calculation of the expected duration of a trip from A to B without actually calculating the directions narrative between those points. This makes the calculation much faster, about < 10 ms instead of ~200 ms.

Installation

General installation instructions are available on the website: http://opentripplanner.org/wiki/Install

You will also need to install the Apache Thrift runtime on your machine. Instructions are here: http://thrift.apache.org/download/

Running the Server

There is a sample Spring configuration located in src/main/resources/org/opentripplanner/api_thrift/example-service-config.xml

You will need to edit this file to point to the location of your graph (server only supports a single graph for now) and to select a non-default port to run on. Build the project using Maven in the usual way and then run org.opentripplanner.api.thrift.OTPServerMain passing in the location of your edited configuration file as the only command line argument.