Giter VIP home page Giter VIP logo

otp-tutorial's Introduction

OpenTripPlanner Tutorial - creating and querying your own multi-modal route planner

This is an introductory tutorial (approx. 3 hours) covering the setup and querying of an OpenTripPlanner instance.

Latest update: 20 January 2021.

Tutorial in PDF format

The tutorial consists of four parts:

  1. You'll start by building an OTP network graph for the street network and public transport services in Greater Manchester, and then launch your OTP instance and request routes using the web interface.

  2. Next, you'll query the OTP Isochrone API to obtain travel-time polygons, visualising the accessibility of Manchester Airport by public transport.

  3. You'll then automate querying the OTP route planner API using the otpr R package, looking up route information for each Lower Layer Super Output Area (LSOA) in Greater Manchester.

  4. And finally, you'll use the OTP surface analysis API to perform efficient one-to-many analysis and measure the number of jobs accessible from an LSOA.

Note: Currently OTP requires Java 8. This tutorial may not work with later versions of Java.

Note: The GTSF feeds provided in this tutorial for the Greater Manchester area were obtained in December 2020. You will need to take this into account when querying OTP otherwise you may not get any transit routes returned. Ensure that you request a route plan for the period covered by the GTFS feeds.

How to cite

Please cite this tutorial if you use it for your research. Suggested citation:

Young, M. (2021). OpenTripPlanner - creating and querying your own multi-modal route planner.
URL: https://github.com/marcusyoung/otp-tutorial.

Want to say thanks?


otp-tutorial's People

Contributors

marcusyoung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

otp-tutorial's Issues

Error with otp_get_times()

When including the option "detail=TRUE", I receive the error "Can't subset columns that don't exist. Column timeZone doesn't exist." Is there a quick fix or should I use the source code to adjust the function?

areas other than Greater Manchester?

hi, great work. thanks for sharing.
is it possible to create a graph or instance for other areas? i guess this will start from .pbf files.
i'm new to this. excuse me if this request is somewhat too naive.

Applying this tutorial to other regions and modified otp.jar

Hello Marcus,
First of all thank you for this tutorial !
I'd like to apply this technique on other places of the globe and I'm wondering about the impact of your modified otp.jar (In the pdf you say "This has been compiled (...) that includes a UK Way Property Set".
Apart from the OSM and GTFS data for the region I want to apply this technique to, do I need to do something similar for this additional data that you compiled directly in otp ?
Best,
Alexandre

Thanks and a suggestion!

Hi Marcus,

Thanks for this great tutorial. It’s helped me a lot and I’ve got my first OTP instance up and running. Thanks!

I’m wondering how one would go about updating the GTFS data (for example daily). I’d like to use the OTP server as the backend for a transit app I’m working on. Currently I’m regularly shutting down the server, fetching the new data, manually rebuilding the graph, and then powering the server back on. This doesn’t seem efficient and requires me to manually do it.

Is there a better way?
Thanks,

Graph issue

Followed the Tutorial to the T, but i got this error

org.opentripplanner.routing.error.GraphNotFoundException null

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.