Fast map matching  0.1.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
FMM::MM::STMATCHConfig Struct Reference

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
 

Detailed Description

Configuration of stmatch algorithm.

Definition at line 31 of file stmatch_algorithm.hpp.

Constructor & Destructor Documentation

◆ STMATCHConfig()

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.

Parameters
k_argthe number of candidates
r_argthe search radius, in map unit, which is the same as GPS data and network data.
gps_error_argthe gps error, in map unit
vmax_argthe maximum speed of the vehicle in map unit/second
factor_arga factor multiplied with vmax*deltaT to constrain the search in stmatch.

Definition at line 14 of file stmatch_algorithm.cpp.


The documentation for this struct was generated from the following files: