Package com.graphhopper.matching
Class MapMatching
java.lang.Object
com.graphhopper.matching.MapMatching
This class matches real world GPX entries to the digital road network stored
in GraphHopper. The Viterbi algorithm is used to compute the most likely
sequence of map matching candidates. The Viterbi algorithm takes into account
the distance between GPX entries and map matching candidates as well as the
routing distances between consecutive map matching candidates.
See http://en.wikipedia.org/wiki/Map_matching and Newson, Paul, and John Krumm. "Hidden Markov map matching through noise and sparseness." Proceedings of the 17th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems. ACM, 2009.
- Author:
- Peter Karich, Michael Zilske, Stefan Holder, kodonnell
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMapMatching(BaseGraph graph, LocationIndexTree locationIndex, MapMatching.Router router) -
Method Summary
Modifier and TypeMethodDescriptionfilterObservations(List<Observation> observations) Filters observations to only those which will be used for map matching (i.e.findCandidateSnaps(double queryLat, double queryLon) static MapMatchingfromGraphHopper(GraphHopper graphHopper, PMap hints) match(List<Observation> observations) static MapMatching.RouterrouterFromGraphHopper(GraphHopper graphHopper, PMap hints) voidsetMeasurementErrorSigma(double measurementErrorSigma) Standard deviation of the normal distribution [m] used for modeling the GPS error.voidsetTransitionProbabilityBeta(double transitionProbabilityBeta) Beta parameter of the exponential distribution for modeling transition probabilities.
-
Constructor Details
-
MapMatching
-
-
Method Details
-
fromGraphHopper
-
routerFromGraphHopper
-
setTransitionProbabilityBeta
public void setTransitionProbabilityBeta(double transitionProbabilityBeta) Beta parameter of the exponential distribution for modeling transition probabilities. -
setMeasurementErrorSigma
public void setMeasurementErrorSigma(double measurementErrorSigma) Standard deviation of the normal distribution [m] used for modeling the GPS error. -
match
-
filterObservations
Filters observations to only those which will be used for map matching (i.e. those which are separated by at least 2 * measurementErrorSigman -
findCandidateSnaps
-
getStatistics
-