A Python package develop for transportation spatio-temporal big data processing, analysis and visualization.
Use ConfigParser
to store Mapbox settings, mapboxtoken
and imgsavepath
are now store at config.ini
in transbigdata
source code folder.
Update the mobile phone data processing function, See example for detail usage. Add functions:
transbigdata.mobile_stay_move
: Input trajectory data and gridding parameters, identify stay and move.transbigdata.mobile_stay_dutation
: Input the stay point data to identify the duration during night and day time.transbigdata.mobile_identify_home
: Identify home location from mobile phone stay data. The rule is to identify the locations with longest duration in night time.transbigdata.mobile_identify_work
: Identify work location from mobile phone stay data. The rule is to identify the locations with longest duration in day time on weekdays(Average duration should over minhour
).transbigdata.mobile_plot_activity
: Plot the activity plot of individual.Update the metro model, add functions:
transbigdata.metro_network
: create metro networktransbigdata.get_shortest_path
: Obtain the shortest path with given ODtransbigdata.get_k_shortest_paths
: Obtain the k shortest path with given ODtransbigdata.get_path_traveltime
: Obtain the travel time of the pathSee example for detail usage: https://transbigdata.readthedocs.io/en/latest/gallery/Example%205-Modeling%20for%20subway%20network%20topology.html
update plot_map
, now the basemap support input self-define mapbox style.
The tbd.plot_map
function is added OpenStreetMap as the style 0, which do not need access token any more. imgsavepath and access_token are not neccessarily required now.
update grid_params_optimize
method, this algorithm now is changed into PSO to speed up the optimizing process.
fix bug in geohash_decode
fix bug in getadmin
Add the Triangle and hexagon gridding methods, the methods are vectorized and fast:
GPS_to_grids_tri
and gridid_to_polygon_tri
GPS_to_grids_hexa
and gridid_to_polygon_hexa
See Example for details.
v0.3.12:
getbusdata
, now it work perfectly.