{"id":30858746,"url":"https://github.com/urbica/docker-otp","last_synced_at":"2025-09-07T14:17:19.792Z","repository":{"id":40331639,"uuid":"145402264","full_name":"urbica/docker-otp","owner":"urbica","description":"OpenTripPlanner Docker image","archived":false,"fork":false,"pushed_at":"2022-04-13T15:50:15.000Z","size":5,"stargazers_count":13,"open_issues_count":1,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T23:07:43.220Z","etag":null,"topics":["alpine","docker","java","multimodal-trip-planning","opentripplanner","routing","transit","transport"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/urbica.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-20T10:21:45.000Z","updated_at":"2023-01-06T15:19:10.000Z","dependencies_parsed_at":"2022-08-09T17:30:53.842Z","dependency_job_id":null,"html_url":"https://github.com/urbica/docker-otp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/urbica/docker-otp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fdocker-otp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fdocker-otp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fdocker-otp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fdocker-otp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urbica","download_url":"https://codeload.github.com/urbica/docker-otp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fdocker-otp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046016,"owners_count":25212985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine","docker","java","multimodal-trip-planning","opentripplanner","routing","transit","transport"],"created_at":"2025-09-07T14:16:50.579Z","updated_at":"2025-09-07T14:17:19.784Z","avatar_url":"https://github.com/urbica.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Urbica OpenTripPlanner Docker image\n\n[OpenTripPlanner](http://www.opentripplanner.org/) (OTP) is a family of open source software projects that provide passenger information and transportation network analysis services. The core server-side Java component finds itineraries combining transit, pedestrian, bicycle, and car segments through networks built from widely available, open standard OpenStreetMap and GTFS data. This service can be accessed directly via its web API or using a range of Javascript client libraries, including modern reactive modular components targeting mobile platforms.\n\n## Usage\n\nBuild graphs using GTFS and OSM extract in the current directory:\n\n```shell\ndocker run \\\n  -v $PWD:/graphs \\\n  -e JAVA_OPTIONS=-Xmx4G \\\n  urbica/otp --build /graphs\n```\n\nRun OTP server:\n\n```shell\ndocker run \\\n  -p 8080:8080 \\\n  -v $PWD:/var/otp/graphs \\\n  -e JAVA_OPTIONS=-Xmx4G \\\n  urbica/otp --server --autoScan --verbose\n```\n\n...or run OTP server with analyst module:\n\n```shell\ndocker run \\\n  -p 8080:8080 \\\n  -v $PWD:/graphs \\\n  -e JAVA_OPTIONS=-Xmx4G \\\n  urbica/otp --basePath /data --server --analyst --autoScan --verbose\n```\n\n## Basic Tutorial\n\nBased on [OpenTripPlanner Basic Tutorial](https://opentripplanner.readthedocs.io/en/latest/Basic-Tutorial/).\n\n### Get some data\n\nGet GTFS for Transit Schedules and Stops\n\n```shell\nmkdir -p ./graphs/portland\nwget \"http://developer.trimet.org/schedule/gtfs.zip\" -O ./graphs/portland/trimet.gtfs.zip\n```\n\nGet OSM extract for Streets\n\n```shell\nwget http://download.geofabrik.de/north-america/us/oregon-latest.osm.pbf\nosmconvert oregon-latest.osm.pbf -b=-123.043,45.246,-122.276,45.652 --complete-ways -o=portland.pbf\nmv portland.pbf ./graphs/portland\n```\n\n### Start up OTP\n\nBuild graph\n\n```shell\ndocker run \\\n  -v $PWD/graphs:/var/otp/graphs \\\n  -e JAVA_OPTIONS=-Xmx4G \\\n  urbica/otp --build /var/otp/graphs/portland\n```\n\nRun OTP server:\n\n```shell\ndocker run \\\n  -p 8080:8080 \\\n  -v $PWD/graphs:/var/otp/graphs \\\n  -e JAVA_OPTIONS=-Xmx4G \\\n  urbica/otp --server --autoScan --verbose\n```\n\nThe graph build operation should take about one minute to complete, and then you'll see a Grizzly server running message. At this point you have an OpenTripPlanner server running locally and can open http://localhost:8080/ in a web browser. You should be presented with a web client that will interact with your local OpenTripPlanner instance.\n\nThis map-based user interface is in fact sending HTTP GET requests to the OTP server running on your local machine. It can be informative to watch the HTTP requests and responses being generated using the developer tools in your web browser.\n\n### Usage\n\nThere are a number of different resources available through the HTTP API. Besides trip planning, OTP can also look up information about transit routes and stops from the GTFS you loaded and return this information as JSON. For example:\n\n- Get a list of all available routers: http://localhost:8080/otp/routers/default/\n- Get a list all GTFS routes on the default router: http://localhost:8080/otp/routers/default/index/routes\n- Find all stops on TriMet route 52: http://localhost:8080/otp/routers/default/index/routes/TriMet:52/stops\n- Find all routes passing though TriMet stop ID 7003: http://localhost:8080/otp/routers/default/index/stops/TriMet:7003/routes\n- Return all unique sequences of stops on the TriMet Green rail line: http://localhost:8080/otp/routers/default/index/routes/TriMet:4/patterns\n\nWe refer to this as the Index API. It is also documented in the [OTP HTTP API docs](http://dev.opentripplanner.org/apidoc/1.0.0/resource_IndexAPI.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbica%2Fdocker-otp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furbica%2Fdocker-otp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbica%2Fdocker-otp/lists"}