Esempio n. 1
0
        public OsmMapMatcher Clone()
        {
            OsmMapMatcher result = new OsmMapMatcher();

            result.Graph      = Graph;
            result.SearchGrid = SearchGrid.Clone();
            result.State      = MapMatchState.InitialState();
            result.Parameters = Parameters;
            return(result);
        }
Esempio n. 2
0
 public OsmMapMatcher(RoadGraph graph, MapMatcherParameters parameters = null, bool useSearchGrid = true)
 {
     if (parameters == null)
     {
         parameters = MapMatcherParameters.Default;
     }
     Parameters = parameters;
     if (useSearchGrid)
     {
         SearchGrid = SearchGridFactory.ComputeSearchGrid(graph, DefaultValues.Nearby_Road_Radius_In_Meters);
     }
     Graph = graph;
     State = MapMatchState.InitialState();
 }