{"id":17933662,"url":"https://github.com/keyan/pyraptor","last_synced_at":"2026-01-20T06:02:14.938Z","repository":{"id":44865952,"uuid":"146854229","full_name":"keyan/pyRAPTOR","owner":"keyan","description":"Public transit routing engine service","archived":false,"fork":false,"pushed_at":"2022-12-08T02:55:53.000Z","size":3525,"stargazers_count":1,"open_issues_count":6,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-08T08:50:03.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/keyan.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}},"created_at":"2018-08-31T06:58:59.000Z","updated_at":"2023-02-09T12:22:47.000Z","dependencies_parsed_at":"2022-09-03T17:20:56.744Z","dependency_job_id":null,"html_url":"https://github.com/keyan/pyRAPTOR","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keyan/pyRAPTOR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2FpyRAPTOR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2FpyRAPTOR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2FpyRAPTOR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2FpyRAPTOR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keyan","download_url":"https://codeload.github.com/keyan/pyRAPTOR/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2FpyRAPTOR/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28597087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-28T21:41:05.670Z","updated_at":"2026-01-20T06:02:14.919Z","avatar_url":"https://github.com/keyan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Implementation of Round bAsed Public Transit Optimized Router (RAPTOR): https://www.microsoft.com/en-us/research/publication/round-based-public-transit-routing/\n\n### Usage\n\nCurrently hardcoded to use the BART GTFS feed stored as a sqllite db:  `db/gtfs_db`.\n\n1. Install dependencies\n    ```\n    pip3 install requirements.txt\n    ```\n1. Load GTFS data into local SQLite DB\n    ```\n    python3 ./pyraptor/db_loader.py \u003cgtfs_file.zip\u003e\n    ```\n1. Run server\n    ```\n    FLASK_DEBUG=1 FLASK_APP=pyraptor flask run\n    ```\n1. Issue requests using GTFS specified stop ids. For BART these are the first column here: https://transitfeeds-data.s3-us-west-1.amazonaws.com/public/feeds/bart/58/20180920/original/stops.txt\n    ```\n    curl \"http://127.0.0.1:5000/route?origin_stop_id=12TH\u0026dest_stop_id=19TH\" | jq .\n\n    [\n    [\n        \"9:38:53 -- Embark from: 12th St. Oakland City Center\",\n        \"Take the Richmond - Daly City/Millbrae Subway towards Richmond\",\n        \"9:49:00 -- Disembark at: 19th St. Oakland\"\n    ]\n    ]\n    ```\n\n### Optimizations\n\n- add transfers\n- local pruning\n- cleanup db loading/settings\n\n### Known issues\n\n- Timezone not considered, so queries without explicit departure time assume departure time is now for local timezone, but do not convert to transit agency timezone\n- Day of week not considered, to fix this update `stop_times` building in `timetable.py` to cross-reference information in `trips.txt` to only add stop times relevant for the current day\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyan%2Fpyraptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyan%2Fpyraptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyan%2Fpyraptor/lists"}