A Python package develop for transportation spatio-temporal big data processing, analysis and visualization.
Add function traj_length
to calculate trajectory length
improve function busgps_arriveinfo
to automatically select projection crs
rename function tbd.points_to_traj
to tbd.traj_to_linestring
Add the traj module for handling trajectory data. This module includes the following functionalities:
traj_mapmatch(traj, G[, col]) Nearest map matching: Find the nearest point on the road network for each trajectory point.
traj_clean_drift(data[, col, method, ...]) Delete the drift in the trajectory data.
traj_clean_redundant(data[, col]) Delete the data with the same information as the data before and after to reduce the amount of data.
traj_slice(traj_data, slice_data[, ...]) Slice the trajectory data according to the slice data.
traj_smooth(data[, col, proj, ...]) Smooth Trajectory Using Kalman Filter.
traj_segment(data[, groupby_col, retain_col]) Segment the trajectory in order and return the starting and ending information of each segment.
traj_densify(data[, col, timegap]) Trajectory densification, ensure that there is a trajectory point each timegap seconds
traj_sparsify(data[, col, timegap, method]) Trajectory sparsify.
traj_stay_move(data, params[, col, activitytime]) Input trajectory data and gridding parameters, identify stay and move
points_to_traj(traj_points[, col, timecol]) Input trajectory, generate GeoDataFrame
Add activity.py to analysis human activity
Entropy
to calculate Entropy and Entropy rateConfidence ellipse
to calculate and plot confidence ellipseActivity plot
to plot ActivityUpdate function tbd.mobile_plot_activity
rename it to tbd.plot_activity
fontsize
to control fontsize of xticks and yticksyticks_gap
to control yticksxticks_rotation
and xticks_gap
to control xticksgroup
to control the color of the barstbd.mobile_stay_duration
method nametbd.mobile_stay_move
: some stay can not correctly identified.tbd.mobile_plot_activity
: add the shuffle parameter and fix the norm function to control the color displayclean_taxi_status
. Sort the VehicleNum
and Time
columns before clean taxi statusgetadmin
functiongrid.py
Improve plotmap:
read_imgsavepath
and read_mapboxtoken
function100%
0.10.2
to avoid some potential errors3.6
and 3.10
timeout
parameter in crawler.py
requests
instead of urllib
in data fetching