public static int SnapTripToRoad(int tripId) { TripPathService service = new TripPathService(); var measurements = service.GetTripMeasuremnts(tripId); measurements.MapToSnappedLocations(); return(service.SaveChanges()); }
public static int SnapSampleRangeToRoad(int FromSampleId, int ToSampleId) { TripPathService service = new TripPathService(); var measurements = service.GetTripMeasuremnts(FromSampleId, ToSampleId); measurements.MapToSnappedLocations(); return(service.SaveChanges()); }
public TripController() { service = new TripPathService(); anomalyService = new AnomalyService(); }