private void UpdateLocation(object state)
        {
            _locationData = new LocationData(
                _locationData.Latitude + 0.001,
                _locationData.Longtitude + 0.001,
                0, 1,DateTime.Now);

            var locationChanged = LocationChanged;
            if (locationChanged != null)
            {
                locationChanged(_locationData);
            }
        }
		private void TimerEvent()
		{
			if(_running)
			{
				var loc = new LocationData(_latitude, _longtitude, 0, 1, DateTime.Now);
				if(LocationChanged != null)
				{
					LocationChanged(loc);
				}
				_latitude += 0.000001;
				_longtitude += 0.000001;
			}
		}
 public DebugLocationService()
 {
     _locationData = new LocationData(63.42573, 10.44499, 0, 1, DateTime.Now);
 }
 public void OnLocationChanged(Android.Locations.Location location)
 {
     var locationChanged = LocationChanged;
     if (locationChanged != null)
     {
         var latitude = location.Latitude;
         var longtitude = location.Longitude;
         var heading = location.Bearing;
         var accuracy = location.Accuracy;
         var startOfEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
         var timestamp = startOfEpoch.AddMilliseconds(location.Time).ToLocalTime();
         var locationData = new LocationData(latitude, longtitude, heading, accuracy, timestamp);
         locationChanged(locationData);
     }
 }