Loading...
Loading...
Contributors:
Dataset URI:
10.6084/m9.figshare.31481464.v1OverviewThe Large-Scale Taxi Demand and Mobility Flow Dataset in Shanghai, China (TaxiSH) is a high-fidelity spatiotemporal dataset built to support macroscopic urban mobility and traffic-forecasting research. It is extracted from over 133 GB of raw taxi GPS data comprising 2.16 billion records collected across Shanghai over four months (1 July to 31 October 2014, 123 days). The dataset captures citywide human mobility on an approximately 1 km spatial grid.Data Processing & Quality AssuranceTo ensure topological validity and physical reliability, the raw GPS streams underwent a rigorous 5-stage processing pipeline. This included point-level trajectory refinement (filtering out stationary noise and geometric artifacts like acute angles and GPS drifts) and trip-level quality assurance (eliminating structural corruptions such as spatial teleportation and prolonged signal loss). This rigorous culling prioritized high-fidelity, continuous trajectories over sheer data volume, resulting in a highly reliable subset of 69,863,751 (nearly 70 million) valid trips.Data StructureTo serve diverse modeling needs (e.g., Graph Convolutional Networks, spatiotemporal forecasting), the dataset is provided as standardized CSV files. All temporal fields use a global Time_Index, and all spatial fields use grid IDs that resolve against the accompanying geometry file.1. Trip-Level OD Data (`TaxiSH_Trip_Level_OD.csv`): Micro-level validated trip records at the 30-minute standard granularity. Columns: Taxi_ID, O_Time_Index, O_Grid_ID, D_Time_Index, D_Grid_ID, Dist_km, Dur_s, Speed_kmh (anonymized taxi ID, origin and destination time-index and grid ID, and per-trip distance, duration, and average speed).2. Trip-Level OD Data, 15-minute index (`TaxiSH_Trip_Level_OD_15min.csv`): Identical to the file above except that the origin and destination time-index columns use 15-minute bins, for users who need finer temporal resolution.3. OD Flow Data (`TaxiSH_OD_Flow.csv`): Macroscopic volume and average kinematic attributes aggregated by 30-minute bin and directed OD pair. Columns: Time_Index, O_Grid_ID, D_Grid_ID, Trip_Volume, Avg_Dist_km, Avg_Dur_s, Avg_Speed_kmh.4. In/Out Flow Data (`TaxiSH_InOut_Flow.csv`): Total inflow and outflow for each urban grid cell at 30-minute intervals. Columns: Time_Index, Grid_ID, Outflow, Inflow, Total_Flow.5. Spatial Grid Geometry (`Shanghai_Grid_Geometry.csv`): The mapping from each Grid_ID to its centroid coordinates and cell polygon (WGS-84). Columns: Grid_ID, Centroid_Lon, Centroid_Lat, Geometry_WKT.6. Workday Calendar (`TaxiSH_WorkDay_Calendar.csv`): The official 2014 China workday/holiday calendar over the recording period, for separating workday and non-workday demand. Columns: Date, Weekday, Is_WorkDay, Day_Index, TimeIndex_30min_Start, TimeIndex_15min_Start, Note, where Is_WorkDay is 1 for a workday, 0 for a rest day, and -1 for the recording outage.Usage Notes- Temporal indexing: Time_Index is a global bin counter starting at 2014-07-01 00:00 (Asia/Shanghai). At the 30-minute standard it runs 0 to 5903; the 15-minute trip-level variant runs 0 to 11807. Each calendar day maps to Day_Index * 48 (30-minute) or Day_Index * 96 (15-minute), as tabulated in the workday calendar.- Spatial indexing: Grid identifiers have the form Col_Row (e.g., `91_84`) and correspond directly to Shanghai_Grid_Geometry.csv, allowing seamless integration with GIS software and spatial network structures.- Recording gap: 7 and 8 August 2014 contain no data (recording outage) and are flagged with Is_WorkDay = -1 in the workday calendar.Code AvailabilityThe Python and Bash scripts used for data cleaning, spatial joining, and multiprocessing optimization (Stage 1 to Stage 5) are open-sourced and available on GitHub: https://github.com/BillXSY/TaxiSH
Keyword(s):
China; OD flows; origin-destination data; Shanghai; taxi demand.
MeSH Term(s):
Grants and Funding:
No Grants or Funding Data Available
Associated Publication(s):
No Associated Publication Data Available
Supplementary Data:
No Supplementary Data Available
Related Dataset(s):
No Related Dataset Data Available
The National Library of Medicine (NLM) provides information about biomedical datasets. Inclusion on an NLM Web page does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: NLM Web Policies (nih.gov)