Fast map matching
0.1.0
|
Fast map matching algorithm/model. More...
#include <fmm_algorithm.hpp>
Public Member Functions | |
FastMapMatch (const NETWORK::Network &network, const NETWORK::NetworkGraph &graph, std::shared_ptr< UBODT > ubodt) | |
Constructor of Fast map matching model. More... | |
MatchResult | match_traj (const CORE::Trajectory &traj, const FastMapMatchConfig &config) |
Match a trajectory to the road network. More... | |
PYTHON::PyMatchResult | match_wkt (const std::string &wkt, const FastMapMatchConfig &config) |
Match a wkt linestring to the road network. More... | |
Protected Member Functions | |
double | get_sp_dist (const Candidate *ca, const Candidate *cb) |
Get shortest path distance between two candidates. More... | |
void | update_tg (TransitionGraph *tg, const CORE::Trajectory &traj, const FastMapMatchConfig &config) |
Update probabilities in a transition graph. More... | |
void | update_layer (int level, TGLayer *la_ptr, TGLayer *lb_ptr, double eu_dist) |
Update probabilities between two layers a and b in the transition graph. More... | |
Fast map matching algorithm/model.
Definition at line 73 of file fmm_algorithm.hpp.
|
inline |
Constructor of Fast map matching model.
network | road network |
graph | road network graph |
ubodt | Upperbounded origin destination table |
Definition at line 81 of file fmm_algorithm.hpp.
Get shortest path distance between two candidates.
ca | from candidate |
cb | to candidate |
Definition at line 125 of file fmm_algorithm.cpp.
MatchResult FastMapMatch::match_traj | ( | const CORE::Trajectory & | traj, |
const FastMapMatchConfig & | config | ||
) |
Match a trajectory to the road network.
traj | input trajector data |
config | configuration of map matching algorithm |
Definition at line 51 of file fmm_algorithm.cpp.
PyMatchResult FastMapMatch::match_wkt | ( | const std::string & | wkt, |
const FastMapMatchConfig & | config | ||
) |
Match a wkt linestring to the road network.
wkt | WKT representation of a trajectory |
config | Map matching configuration |
Definition at line 94 of file fmm_algorithm.cpp.
|
protected |
Update probabilities between two layers a and b in the transition graph.
level | the index of layer a |
la_ptr | layer a |
lb_ptr | layer b next to a |
eu_dist | Euclidean distance between two observed point |
Definition at line 156 of file fmm_algorithm.cpp.
|
protected |
Update probabilities in a transition graph.
tg | transition graph |
traj | raw trajectory |
config | map match configuration |
Definition at line 142 of file fmm_algorithm.cpp.