Fast map matching  0.1.0
pyfmm.hpp
1 
10 #ifndef FMM_PYFMM_HPP_
11 #define FMM_PYFMM_HPP_
12 
13 #include "mm/mm_type.hpp"
14 
15 namespace FMM{
19 namespace PYTHON{
23 struct PyCandidate{
24  int index;
25  int edge_id;
26  int source;
27  int target;
28  double error;
29  double offset;
30  double length;
31  double ep;
32  double tp;
33  double spdist;
34 };
35 
39 struct PyMatchResult {
40  int id;
43  std::vector<PyCandidate> candidates;
44  std::vector<int> indices;
47 };
48 }; // PYTHON
49 }; // FMM
50 
51 #endif //FMM_SRC_PYTHON_PYFMM_HPP_
FMM::PYTHON::PyMatchResult::mgeom
CORE::LineString mgeom
Geometry of the matched path.
Definition: pyfmm.hpp:45
FMM::PYTHON::PyCandidate::edge_id
int edge_id
Edge id matched.
Definition: pyfmm.hpp:25
FMM::PYTHON::PyCandidate::spdist
double spdist
shortest path distance from previous matched candidate
Definition: pyfmm.hpp:33
FMM::PYTHON::PyCandidate::source
int source
Edge source node ID.
Definition: pyfmm.hpp:26
FMM::PYTHON::PyMatchResult::candidates
std::vector< PyCandidate > candidates
Candidate matched to each point.
Definition: pyfmm.hpp:43
FMM::PYTHON::PyCandidate::target
int target
Edge target node ID.
Definition: pyfmm.hpp:27
FMM::PYTHON::PyMatchResult
POD Match result type used in Python API.
Definition: pyfmm.hpp:39
FMM::MM::C_Path
std::vector< FMM::NETWORK::EdgeID > C_Path
Complete path, ids of a sequence of topologically connected edges.
Definition: mm_type.hpp:47
FMM::PYTHON::PyCandidate::index
int index
Index of the candidate, point index.
Definition: pyfmm.hpp:24
FMM
Fast map matching.
Definition: geom_algorithm.hpp:17
FMM::PYTHON::PyMatchResult::indices
std::vector< int > indices
index of matched edge in the cpath
Definition: pyfmm.hpp:44
FMM::PYTHON::PyMatchResult::pgeom
CORE::LineString pgeom
Point position matched for each GPS point.
Definition: pyfmm.hpp:46
FMM::PYTHON::PyCandidate::ep
double ep
emission probability
Definition: pyfmm.hpp:31
FMM::PYTHON::PyCandidate::offset
double offset
Matched point distance to start node of edge.
Definition: pyfmm.hpp:29
FMM::PYTHON::PyCandidate
POD Candidate data type used in Python API.
Definition: pyfmm.hpp:23
FMM::PYTHON::PyMatchResult::opath
MM::O_Path opath
Edge ID matched for each point of the trajectory
Definition: pyfmm.hpp:41
FMM::CORE::LineString
Linestring geometry class.
Definition: geometry.hpp:34
FMM::MM::O_Path
std::vector< FMM::NETWORK::EdgeID > O_Path
Optimal path, edge id matched to each point in the trajectory.
Definition: mm_type.hpp:44
FMM::PYTHON::PyMatchResult::id
int id
id of a trajectory
Definition: pyfmm.hpp:40
FMM::PYTHON::PyCandidate::error
double error
Error of matching.
Definition: pyfmm.hpp:28
FMM::PYTHON::PyCandidate::length
double length
Length of edge matched.
Definition: pyfmm.hpp:30
FMM::PYTHON::PyMatchResult::cpath
MM::C_Path cpath
Edge ID traversed by the matched path.
Definition: pyfmm.hpp:42
FMM::PYTHON::PyCandidate::tp
double tp
transition proability from previous matched candidate
Definition: pyfmm.hpp:32