Fast map matching
0.1.0
|
Configuration of stmatch algorithm. More...
#include <stmatch_algorithm.hpp>
Public Member Functions | |
STMATCHConfig (int k_arg=8, double r_arg=300, double gps_error_arg=50, double vmax_arg=30, double factor_arg=1.5) | |
Constructor of stmatch algorithm configuration. More... | |
bool | validate () const |
Check the validity of the configuration. | |
void | print () const |
Print configuration data. | |
Static Public Member Functions | |
static STMATCHConfig | load_from_xml (const boost::property_tree::ptree &xml_data) |
Load from xml data. | |
static STMATCHConfig | load_from_arg (const cxxopts::ParseResult &arg_data) |
Load from argument parsed data. | |
Public Attributes | |
int | k |
number of candidates | |
double | radius |
search radius for candidates, unit is map_unit | |
double | gps_error |
GPS error, unit is map_unit. | |
double | vmax |
maximum speed of the vehicle, unit is map_unit/second | |
double | factor |
factor multiplied to vmax*deltaT to limit the search of shortest path | |
Configuration of stmatch algorithm.
Definition at line 31 of file stmatch_algorithm.hpp.
STMATCHConfig::STMATCHConfig | ( | int | k_arg = 8 , |
double | r_arg = 300 , |
||
double | gps_error_arg = 50 , |
||
double | vmax_arg = 30 , |
||
double | factor_arg = 1.5 |
||
) |
Constructor of stmatch algorithm configuration.
k_arg | the number of candidates |
r_arg | the search radius, in map unit, which is the same as GPS data and network data. |
gps_error_arg | the gps error, in map unit |
vmax_arg | the maximum speed of the vehicle in map unit/second |
factor_arg | a factor multiplied with vmax*deltaT to constrain the search in stmatch. |
Definition at line 14 of file stmatch_algorithm.cpp.