Compiling and Setting up OpenTripPlanner with Dynamic Transfer Pattern on CentOS

Multimodal Trip Planning with dynamic costs (for example originating from predictions) were focus of Sebastian Peters Bachelors thesis and our paper at AGILE 2017. In the following, I give a step by step tutorial how you may set up Sebastian Peters OpenTripPlanner implementation of Dynamic Transfer Patterns on your CentOS machine.

Step 1) Prepare your system

# install git & wget
sudo yum install git
sudo yum install wget
# install vim
sudo yum install vim
# install jdk 1.8
sudo yum install java-1.8.0-openjdk
sudo yum install java-1.8.0-devel
# install maven
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install apache-maven

Step 2) Clone repository

git clone https://tliebig@bitbucket.org/tliebig/developvm.git 

Step 3) Build OTP from the sources

cd devolp-vm-with-gui/OpenTripPlanner-master
mvn clean package -DskipTests
mvn compile
mvn package -DskipTests

Step 4) Run OTP

cd target
java -Xmx2G -jar otp-0.20.0-SNAPSHOT-shaded.jar --build . --buildTp --basePath .

More Information

  • [DOI] T. Liebig, S. Peter, M. Grzenda, and K. Junosza-Szaniawski, “Dynamic Transfer Patterns for Fast Multi-modal Route Planning,” in Societal Geo-innovation: Selected papers of the 20th AGILE conference on Geographic Information Science, A. Bregt, T. Sarjakoski, R. van Lammeren, and F. Rip, Eds., Cham: Springer International Publishing, 2017, pp. 223-236.
    [Bibtex] [[PDF] Draft]
    @inbook{liebig17,
    author={Liebig, Thomas and Peter, Sebastian and Grzenda, Maciej and Junosza-Szaniawski, Konstanty},
    editor={Bregt, Arnold and Sarjakoski, Tapani and van Lammeren, Ron and Rip, Frans},
    title={Dynamic Transfer Patterns for Fast Multi-modal Route Planning},
    bookTitle={Societal Geo-innovation: Selected papers of the 20th AGILE conference on Geographic Information Science},
    year={2017},
    publisher={Springer International Publishing},
    address={Cham},
    pages={223--236},
    URL={http://dx.doi.org/10.1007/978-3-319-56759-4_13},
    doi={10.1007/978-3-319-56759-4_13},
    isbn={978-3-319-56759-4},
    }