Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a sane gps_precision multipler #1867

Merged
merged 1 commit into from
Jan 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/engine/plugins/match.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

template <class DataFacadeT> class MapMatchingPlugin : public BasePlugin
{
constexpr static const unsigned max_number_of_candidates = 10;

std::shared_ptr<SearchEngine<DataFacadeT>> search_engine_ptr;

using ClassifierT = BayesClassifier<LaplaceDistribution, LaplaceDistribution, double>;
Expand Down Expand Up @@ -74,7 +72,9 @@ template <class DataFacadeT> class MapMatchingPlugin : public BasePlugin
{
osrm::matching::CandidateLists candidates_lists;

double query_radius = 10 * gps_precision;
// assuming the gps_precision is the standart-diviation of normal distribution that models
// GPS noise (in this model) this should give us the correct candidate with >0.95
double query_radius = 3 * gps_precision;
double last_distance =
coordinate_calculation::haversineDistance(input_coords[0], input_coords[1]);

Expand Down