{"id":16897669,"url":"https://github.com/texitoi/pt_ref","last_synced_at":"2026-05-11T16:33:30.189Z","repository":{"id":66120873,"uuid":"128846002","full_name":"TeXitoi/pt_ref","owner":"TeXitoi","description":"Explore the public transport referencial with a nice DSL.","archived":false,"fork":false,"pushed_at":"2018-05-05T20:25:15.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-28T00:31:29.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/TeXitoi.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":"2018-04-09T23:34:45.000Z","updated_at":"2018-05-05T20:25:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ae3852e-cad7-485b-bc94-c57e4ffb869b","html_url":"https://github.com/TeXitoi/pt_ref","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TeXitoi/pt_ref","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeXitoi%2Fpt_ref","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeXitoi%2Fpt_ref/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeXitoi%2Fpt_ref/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeXitoi%2Fpt_ref/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeXitoi","download_url":"https://codeload.github.com/TeXitoi/pt_ref/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeXitoi%2Fpt_ref/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":[],"created_at":"2024-10-13T17:39:08.100Z","updated_at":"2026-05-11T16:33:30.170Z","avatar_url":"https://github.com/TeXitoi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pt_ref [![Build status](https://travis-ci.org/TeXitoi/pt_ref.svg?branch=master)](https://travis-ci.org/TeXitoi/pt_ref)\n\nExplore the public transport referencial with a nice DSL.\n\nThis project is a little funny POC, but nothing really polished.\n\n## Tutorial\n\nFirst, you need a [NTFS dataset](https://github.com/CanalTP/navitia/blob/dev/documentation/ntfs/ntfs_fr.md). You can find NTFS dataset at the [navitia open databar](https://www.navitia.io/datasets). If you are in a hurry, get the [Île-de-France dataset (click on ntfs.zip)](https://navitia.opendatasoft.com/explore/dataset/fr-idf/table/?sort=type_file)\n\nUnzip your dataset.\n\nYou need a [rust](https://www.rust-lang.org/) nightly toolchain.\n\n```\n$ curl https://sh.rustup.rs -sSf | sh\n$ rustup toolchain install nightly\n```\n\nNow, download and build pt_ref\n\n```\n$ git clone https://github.com/TeXitoi/pt_ref.git\n$ cd pt_ref\n$ cargo +nightly build --release\n```\n\nAnd now you can play with it. I like to use [rlwrap](https://github.com/hanslub42/rlwrap) but that's optional. I also redirect stdout to a file to not spam the terminal (with a `tail -f` on the file on another terminal).\n\n```\n$ rlwrap ./target/release/pt_ref ~/dev/run/navitia/data/fr-idf/ntfs/ \u003e /tmp/pt_ref.log\nReading NTFS... done in 14s 727ms 83us 21ns.\n\u003e get stop_area \u003c- get vehicle_journey \u003c- stop_area.id = OIF:SA:8738400 and network.id = TN\n85 objects in 15ms 777us 242ns.\n\u003e get route \u003c- (stop_area.id = OIF:SA:8775860 and stop_area.id = OIF:SA:8727100) - (physical_mode.id = Bus or physical_mode.id = Metro)\n4 objects in 4ms 78us 527ns.\n\u003e get line \u003c- (get connection \u003c- get line \u003c- line.code(13) and physical_mode.id = Metro) - (line.code(13) and physical_mode.id = Metro or physical_mode.id = Bus)\n17 objects in 5ms 649us 555ns.\n\u003e \n```\n\nOn `/tmp/pt_ref.log`, you'll have the json of your queries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftexitoi%2Fpt_ref","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftexitoi%2Fpt_ref","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftexitoi%2Fpt_ref/lists"}