gps2gtfs: A Python package to process raw GPS data of public transit and transform to GTFS format
-
Project Lead(s) / Mentor(s)
- Dr. T. Uthayasanker
-
Contributor(s)
- R. Shiveswarran
- S. Gopinath
- S. Kajanan
- A. Kesavi
Description
Keywords: GTFS, GPS, Travel Time, Public Transit, Heterogeneous Traffic Condition, ITS (Intelligent Transportation System)
Architecture
The package is structured into eight(8) primary packages:
- data_field: This package is responsible for managing column names for user input and a predefined set of output columns. The fields provided by the user should be a superset of the defined fields within this package.
- load_data: This package handles the loading of necessary data into the pipeline.
- preprocessing: The preprocessing package is designed to clean the data loaded from the previous step.
- trip: The trip package focuses on extracting trips and generating associated features.
- stop: Within the stop package, the identification of stops and the creation of related features take place.
- reporting: This package is responsible for generating outputs containing the extracted information.
- pipeline: This package contains functionality to execute the trip extraction pipeline and the trip & stop extraction pipeline.
- utility: The utility module provides support for various utility functions, including input/output operations, data conversions, and logging.
Architecture digram of gps2gfts
How the gps2gfts works
Quick Example
It is essential to provide input files in CSV format for proper functionality. Additionally, the utilization of this package requires the presence of a main thread.
1. Pipeline to extract trips details
from gps2gtfs.pipeline.trip import run
if __name__ == "__main__":
raw_gps_data_path = "path/to/raw_gps_data/csv"
trip_terminals_data_path = "path/to/trip_terminals_data/csv"
terminals_buffer_radius = 100
run(
raw_gps_data_path,
trip_terminals_data_path,
terminals_buffer_radius,
)
2. Pipeline to extract trips and stops details
from gps2gtfs.pipeline.trip_stop import run
if __name__ == "__main__":
raw_gps_data_path = "path/to/raw_gps_data/csv"
trip_terminals_data_path = "path/to/trip_terminals_data/csv"
stops_data_path = "path/to/stops_data/csv"
terminals_buffer_radius = 100
stops_buffer_radius = 50
stops_extended_buffer_radius = 100
run(
raw_gps_data_path,
trip_terminals_data_path,
stops_data_path,
terminals_buffer_radius,
stops_buffer_radius,
stops_extended_buffer_radius,
)
License
MIT License. You can see here.
Code of Conduct
Please read our code of conduct document here.
Metadata
Release files for gps2gtfs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gps2gtfs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gps2gtfs-0.1.0-py3-none-any.whl |
Release files / gps2gtfs-0.1.0-py3-none-any.whl
| Download URL | gps2gtfs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
997d4c80812f57e52e74373ec5b1d190e4de53d731228fd1e2079f746b679744
|
|
BLAKE2b-256 checksum How to use checksums |
3de0b63f58e2cb8eed0b61ea4fbab922abd7816f45f894cc839f9f7df0dde64c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for gps2gtfs 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.