Open source routing engine for OpenStreetMap, usable as a Java library or a standalone web server for route, isochrone and map matching queries.
opentripplanner/OpenTripPlanner
Open source multi-modal trip planner server for scheduled public transit combined with biking, walking, bike share and ride hailing.
Open-source alternative to:Google Maps
- Stars
- 2,771
- Forks
- 1,152
- Open issues
- 181
- Last commit
- 21 hours ago
What is it?
OpenTripPlanner (OTP) is a Java server that finds travel itineraries across scheduled public transportation, bicycling, walking, bike share and ride hailing. It builds its transport network from open data in standard formats, primarily GTFS and OpenStreetMap, and runs on any platform with a Java virtual machine.
OTP applies real-time updates and service alerts, so itineraries account for disruptions and schedule changes. Clients query it through GraphQL APIs, and the project includes an optional MapLibre-based JavaScript client mainly used for testing. Most deployments build custom clients from reusable components.
This branch is OTP 2, the second major version, which is the actively supported line. The project began at Portland's transit agency TriMet in 2009.
Key features
- 01Multi-modal itinerary planning across transit, cycling, walking, bike share and ride hailing
- 02Builds the network from GTFS and OpenStreetMap data
- 03Applies real-time updates and alerts to route results
- 04Exposes GraphQL APIs for client applications
- 05Runs on any platform with a Java virtual machine
Use cases
- Adding trip planning to a city or regional transit agency's website or app
- Building a custom transit journey planner with GraphQL-based clients
- Planning routes that combine public transit with bike share or ride hailing
- Offering itineraries that adapt to real-time service disruptions
Quick start
- 1
Build the Maven project to produce the shaded JAR (see the README and the Basic Tutorial in the docs)
Things to know
- The license could not be identified from the metadata, so check the repository's license terms before use.
- It is a Java server that needs a Java virtual machine and GTFS and OpenStreetMap data, so self-hosting takes setup effort.
In collections
Topics
FAQ
- What is OpenTripPlanner?
- Open source multi-modal trip planner server for scheduled public transit combined with biking, walking, bike share and ride hailing. OpenTripPlanner (OTP) is a Java server that finds travel itineraries across scheduled public transportation, bicycling, walking, bike share and ride hailing. It builds its transport network from open data in standard formats, primarily GTFS and OpenStreetMap, and runs on any platform with a Java virtual machine.
- Is OpenTripPlanner free to use? What license does it have?
- OpenTripPlanner is open source under the Other license. Check the license terms before using it in commercial products.
- Is OpenTripPlanner still maintained?
- Actively maintained. The last commit to OpenTripPlanner was on Nov 6, 2026.
- What can I use OpenTripPlanner for?
- Adding trip planning to a city or regional transit agency's website or app Building a custom transit journey planner with GraphQL-based clients Planning routes that combine public transit with bike share or ride hailing Offering itineraries that adapt to real-time service disruptions
- How do I install OpenTripPlanner?
- Build the Maven project to produce the shaded JAR (see the README and the Basic Tutorial in the docs)
- Where can I get OpenTripPlanner?
- The source code and installation instructions are on GitHub: https://github.com/opentripplanner/OpenTripPlanner
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Community-editable CSV databases of station codes, names, lines and coordinates for Japanese IC, T-Union, Korean transit cards and U-money.
Open source routing engine in Java offering directions, isochrones, matrix, and snapping services built on OpenStreetMap data.
High-performance C++ routing engine that computes routes, distance tables, GPS map matching and more on OpenStreetMap data.
Free, privacy-first offline maps and GPS navigation app for Android and iOS, built on crowd-sourced OpenStreetMap data.
Offline-capable map and navigation app for Android and iOS, built on OpenStreetMap data with turn-by-turn routing for car, bike and pedestrian use.