I'm working on my Ph.D. research and I hope that you can help me with my problem.
I have GPS tracking data for minibus taxis in two shapefiles, one for taxi trips and the other for the stops of the taxis during each specific trip. Only the stops shapefile is used as input for a simulation software and for this purpose the shapefile is converted to a comma-separated value (.csv) file to comply with the software format requirements. However, due to the fact that the software chooses the shortest route between the recorded stops, it omits some actual distances that are traveled by taxis which are reflected in the available trip route shapefile of the data; which would lead to inaccurate estimates of the results under the investigation. The missing distances can be noticed in the accompanied trip shapefile as shown in the figure below. They also appear in the results I got from the simulation.
Now I question whether it is possible to use QGIS to create extra virtual stop points along the actual taxi route using the trip shapefile and then merge these points with the actual stops in the stops’ shapefile with the following conditions:
- Each created virtual point has an ID that is compatible with the actual stops and trips IDs, or maybe we can create new IDs for the whole new dataset
- Each point has an x and y coordinates
- The points are created at identified distances and follow the sequence of the actual stops along the routes such that all the old and new points be considered as taxi stops in one shapefile and thereafter be converted to a csv file; and that
- For the time component I need these points to be identified in year, day, hour, minute and second in the same manner as appeared in the attributes table of the stops’ shapefile and also, they have to follow the actual stopping times sequence of the original stops.
A screenshot of the stops data format is illustrated below:
I am dealing with a large dataset so manual methods are not viable.