namespace Monitoring.Core.Domain.UserSettingsManagement;

public record ManualPosition(double Latitude, double Longitude)
{
    public static ManualPosition Create(double latitude, double longitude)
    {
        if (latitude < -90 || latitude > 90)
            throw new ArgumentException("Latitude must be between -90 and 90", nameof(latitude));

        if (longitude < -180 || longitude > 180)
            throw new ArgumentException("Longitude must be between -180 and 180", nameof(longitude));

        return new ManualPosition(latitude, longitude);
    }
} 