using Xamarin.Essentials;
namespace TINK.Services.Geolocation
{
public static class LocationHelper
{
///
/// Converts Xamarin.Essentials Location object to Geolocatin object.
///
///
///
public static IGeolocation ToGeolocation(this Location location)
=> new Geolocation.Builder
{
Latitude = location.Latitude,
Longitude = location.Longitude,
Accuracy = location.Accuracy,
Timestamp = location.Timestamp,
}.Build();
}
}