{"id":18807001,"url":"https://github.com/ansoncfit/otp2-scripts","last_synced_at":"2026-01-08T22:30:15.944Z","repository":{"id":92904900,"uuid":"320047295","full_name":"ansoncfit/otp2-scripts","owner":"ansoncfit","description":" Example scripts for batch queries to an OpenTripPlanner v2 server","archived":false,"fork":false,"pushed_at":"2020-12-09T18:39:38.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-29T21:29:59.061Z","etag":null,"topics":["opentripplanner","publictransportation","transit","traveltime"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ansoncfit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-09T18:39:33.000Z","updated_at":"2020-12-09T18:44:42.000Z","dependencies_parsed_at":"2023-04-13T05:00:51.149Z","dependency_job_id":null,"html_url":"https://github.com/ansoncfit/otp2-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansoncfit%2Fotp2-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansoncfit%2Fotp2-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansoncfit%2Fotp2-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansoncfit%2Fotp2-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansoncfit","download_url":"https://codeload.github.com/ansoncfit/otp2-scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239742417,"owners_count":19689309,"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","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":["opentripplanner","publictransportation","transit","traveltime"],"created_at":"2024-11-07T22:50:33.183Z","updated_at":"2026-01-08T22:30:15.868Z","avatar_url":"https://github.com/ansoncfit.png","language":"Jupyter Notebook","readme":"# otp2-scripts\n Example scripts for batch queries to an OpenTripPlanner v2 server\n\n The `OTP2-batch.ipynb` notebook will write a CSV of walk/transit travel times for specified origin-destination pairs. Other tools (e.g. [R5](https://github.com/conveyal/r5)) may be much faster, especially for full O-D travel time matrices.\n\n## Setup\n\nDownload OTP2 .jar (available [here](https://repo1.maven.org/maven2/org/opentripplanner/otp/)).\n\nModify `conf/build-config.json` so that the service dates correspond with the GTFS you will use.\n\nCopy GTFS (.zip), OSM (.pbf), and `build-config.json` to a single directory (e.g. `graph`)\n\nStart OTP2: `java -jar -Xmx6G otp-2.0.0.jar --build --save --serve graph`. If you've built a graph previously (i.e. `graph.obj` is present in the target directory): `java -jar -Xmx6G otp-2.0.0.jar --load graph`.\n\nModify `conf/routingRequest.json` so that it has desired parameters.\n\nSave origin and destination .csv files, each with columns `GEOID, X, Y`, to the `conf` directory.\n\nOpen and run the `OTP2-batch.ipynb` notebook in jupyter lab.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansoncfit%2Fotp2-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansoncfit%2Fotp2-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansoncfit%2Fotp2-scripts/lists"}