Skip to content

pythaac/PyNavi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyNavi

A GPX trajectory combination algorithm 2 (Python)

Description

This program is an implementation of the following paper:

A Combination Method of Trajectory Data using Correlated Direction of Collected GPS Data https://doi.org/10.9717/kmms.2016.19.8.1636

In short, this algorithm combines trajectory data, which is GPX(GPS Xml format) file, and generates new routes like below:
 

 

Prerequisite

  • Python (ver. 2.7.11)
  • MongoDB
  • The test is carried out on Windows

Usage

Trajectory Clustering
In /trajectory_clustering/driver.py, the input value is the directory for trajectories to combine. If input is "C:\trajectories", the input GPX files should be in there.

Run driver.py
When you have files in input and run driver.py, you can see like:
 

 

Check Database
After that, you can check out the information for combining trajectories:
 

 

Trajectory Direction
In /trajectory_direction/driver.py, the output value is the directory for the generated routes. If output is "C:\output", you can find the combined output after running driver.py like:
 

 

Result

Input Path
The following shows 3 of input trajectories:

input

 
And the following shows 8 of output routes:

input

About

A GPX trajectory combination algorithm 2 (Python)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages