{"id":19102673,"url":"https://github.com/nuckal777/netex-parse","last_synced_at":"2025-10-16T00:19:25.940Z","repository":{"id":226970157,"uuid":"482590462","full_name":"Nuckal777/netex-parse","owner":"Nuckal777","description":"Parallel netex processor","archived":false,"fork":false,"pushed_at":"2024-11-05T20:00:58.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T02:01:12.009Z","etag":null,"topics":["netex","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nuckal777.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":"2022-04-17T17:34:15.000Z","updated_at":"2024-11-05T20:01:02.000Z","dependencies_parsed_at":"2025-01-03T02:00:28.329Z","dependency_job_id":"ad1f5dec-20c0-4583-8198-f41a1898209c","html_url":"https://github.com/Nuckal777/netex-parse","commit_stats":null,"previous_names":["nuckal777/netex-parse"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuckal777%2Fnetex-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuckal777%2Fnetex-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuckal777%2Fnetex-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuckal777%2Fnetex-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nuckal777","download_url":"https://codeload.github.com/Nuckal777/netex-parse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240156683,"owners_count":19756815,"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":["netex","rust"],"created_at":"2024-11-09T03:56:40.996Z","updated_at":"2025-10-16T00:19:20.921Z","avatar_url":"https://github.com/Nuckal777.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# netex-parse\n\n![Build Status](https://img.shields.io/github/actions/workflow/status/Nuckal777/netex-parse/test.yaml?branch=master)\n\nMulti-threaded parser for public transport data in the [NeTEx](https://netex-cen.eu/) format build with Rust, which generates graphs for stations and connections with timetables as output.\nIt can produce CSV files or a custom memory-mappable binary format.\nDuring processing non-sensical data is filtered.\n\n## Features\n- Multi-threaded parsing of NeTEx documents directly from compressed zipfiles\n- Generation of CSV files of contained stations and connections for import into [Neo4j](https://neo4j.com/)\n- Generation of a custom binary format with walk duration data between stations\n- Filtering of non-sensical data during processing\n\n## Building\n\n```sh\ncargo build --release\n```\n\n## Usage\n\nAll NeTEx documents need to be provided as a zipfile.\n\n### CSV\n\nTo generate CSV files, use the following command:\n```sh\nnetex-parse --output-format csv path/to/file.zip\n```\n\nThe resulting `nodes.csv` and `edges.csv` files can be imported into Neo4j using the provided Cypher statements below:\n\n```cypher\nCREATE TEXT INDEX stop_name_index IF NOT EXISTS FOR (n:Stop) ON (n.name)\n\nLOAD CSV FROM \"file:///nodes.csv\" AS node MERGE (:Stop { name: node[0], loc: point({longitude: toFloat(node[1]), latitude: toFloat(node[2])}) })\n\nLOAD CSV FROM \"file:///edges.csv\" AS edge MATCH (a:Stop),(b:Stop) WHERE a.name = edge[0] and b.name = edge[1] MERGE (a)-[c:Connection]-\u003e(b) ON CREATE SET c.timetable = [edge[2]] ON MATCH SET c.timetable = c.timetable + [edge[2]]\n```\n\n### Binary\n\nTo generate the binary format, use the following command:\n\n```sh\nnetex-parse --output-format binary path/to/file.zip\n```\n\nThe metadata for the resulting `graph.bin` file is written to the `nodes.json` file.\nThe later contains a mapping from station ids to their names.\n\n### Including walkways with OpenRouteService\n\nWalkway data between stations can optionally be included in the binary output.\nGiven a properly setup instance of [OpenRouteService](https://openrouteservice.org/) listening on `localhost:8082`, the following procedure includes the walkway data:\n\n1. Generate a `nodes.csv` file using the CSV output option and add the following header: `name,lng,lat,id`.\n2. Run the `python ors/walkways.py path/to/nodes.csv` script, which generates a `walk.json` file. If necessary, create a virtual environment.\n3. Invoke `netex-parse --walkways path/to/walk.json --output-format binary path/to/netex.zip`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuckal777%2Fnetex-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuckal777%2Fnetex-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuckal777%2Fnetex-parse/lists"}