public void Update(BusCoordinates coords) { if (coords != null && !coords.Equals(Position)) { Counter = Counter / 4; Position = coords; if (_geoFence.IsAtWeba(coords.Latitude, coords.Longitude)) { Console.WriteLine($"{Id} is at Weba"); IsAtStop = true; LastStopVisited = BusStop.Weba; } else if (_geoFence.IsAtJacobs(coords.Latitude, coords.Longitude)) { Console.WriteLine($"{Id} is at Jacob"); IsAtStop = true; LastStopVisited = BusStop.Jacob; } else { IsAtStop = false; } } else { Position = coords; Counter = Counter < 30 ? Counter + 1 : Counter; } }