{"id":30284950,"url":"https://github.com/byteb8/gps-data-viz","last_synced_at":"2025-08-16T19:38:46.264Z","repository":{"id":231262008,"uuid":"781298039","full_name":"byteB8/gps-data-viz","owner":"byteB8","description":"GPS Data ( latitude and longitude ) Visualization and Analysis ( traffic of trips ) using python, networkx, osmnx.","archived":false,"fork":false,"pushed_at":"2024-04-03T06:07:53.000Z","size":6958,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T16:57:11.039Z","etag":null,"topics":["gps-data","gps-visualization-python","networkx","osmnx"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byteB8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-04-03T05:49:31.000Z","updated_at":"2024-08-06T06:44:32.000Z","dependencies_parsed_at":"2024-04-03T07:35:02.693Z","dependency_job_id":null,"html_url":"https://github.com/byteB8/gps-data-viz","commit_stats":null,"previous_names":["kumaarbalbir/gps-data-viz","byteb8/gps-data-viz"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byteB8/gps-data-viz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteB8%2Fgps-data-viz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteB8%2Fgps-data-viz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteB8%2Fgps-data-viz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteB8%2Fgps-data-viz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byteB8","download_url":"https://codeload.github.com/byteB8/gps-data-viz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteB8%2Fgps-data-viz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270763345,"owners_count":24641017,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"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":["gps-data","gps-visualization-python","networkx","osmnx"],"created_at":"2025-08-16T19:38:41.913Z","updated_at":"2025-08-16T19:38:46.253Z","avatar_url":"https://github.com/byteB8.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPS Data and Bike Trip Analysis\n\nThis repository aims to provide tools for **visualizing and analyzing GPS data**, particularly focusing on bike trip data and trajectories. Description of below Python scripts:\n\n## 1. `bike_trip.py`\n\nThis script contains a class `BikeTrip` for solving problems related to bike trip data. Here are some of the functionalities provided by this class:\n\n- Processing bike trip data\n- Calculating statistics such as maximum trip duration, minimum trip duration, count of minimum trip duration, and percentage of circular trips\n- Filtering data based on time range\n- Finding feasible trips and unique depots\n- Generating graphs and **shortest routes** on maps\n\n### How to use `bike_trip.py`\n\nTo use the functionalities provided by `BikeTrip` class, follow these steps:\n\n1. Ensure you have the necessary dependencies installed (`pandas`, `numpy`, `matplotlib`, `geopy`, `networkx`, `osmnx`, `PIL`).\n2. Import `BikeTrip` class from `bike_trip.py`.\n3. Create an instance of `BikeTrip` by passing the path to your bike trip data CSV file.\n4. You can then call various methods of `BikeTrip` class to analyze and visualize the data.\n\n## 2. `gps.py`\n\nThis script contains two classes: `GPSVis` for visualizing GPS data on a map and `GPSdata` for analyzing GPS trajectories. Here's what each class does:\n\n### `GPSVis`\n\n- `GPSVis` class provides methods for plotting GPS data on a map image.\n- It allows customization of the map output, including saving the map to a file.\n- The class takes GPS records and a pre-downloaded **OSM map** image as inputs.\n\n### `GPSdata`\n\n- `GPSdata` class offers functionalities for processing GPS trajectory data.\n- It calculates the **distance traveled** by each user in the provided dataset.\n- It **filters GPS data points** for a specific geographical area (e.g., Beijing) and exports them to a CSV file.\n\n### How to use `gps.py`\n\nTo utilize the functionalities provided by `GPSVis` and `GPSdata` classes:\n\n1. Ensure you have the required dependencies installed (`pandas`, `numpy`, `matplotlib`, `geopy`, `PIL`).\n2. Import the necessary classes from `gps.py`.\n3. Create instances of these classes, providing the required input parameters.\n4. Utilize the methods provided by these classes to visualize and analyze GPS data.\n\n## Usage Examples\n\n- Example usage of both scripts is demonstrated in the `if __name__==\"__main__\"` blocks within each file.\n- You can refer to these examples to understand how to use the functionalities provided by each script.\n\n## Results\n- Shortest Path ( origin_node, destination_node, method = `dijakstra`) ![shortest_path](resource/shortestpath.png)\n\n\n- Beijing [OSM](https://www.openstreetmap.org/#map=4/21.84/82.79) map ![beijing-map](resource/map_beijing.png)\n\n\n- Bike trip traffic on Beijing map ![bike-trip-traffic](resource/beijing_hotspot.png)\n\n## Note\n\nEnsure that you have the required data files (due to large size I am not pushing here) and map images in the specified paths before running the scripts.\n\nFeel free to explore and customize these scripts according to your specific requirements!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteb8%2Fgps-data-viz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyteb8%2Fgps-data-viz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteb8%2Fgps-data-viz/lists"}