sharee.bike-App/TINKLib/Model/PositionFactory.cs
Oliver Hauff f38b516d25 3.0.271
2022-01-22 18:16:10 +01:00

11 lines
342 B
C#

namespace TINK.Model
{
public static class PositionFactory
{
public static IPosition Create(double latitude = double.NaN, double longitude = double.NaN)
=> Position.GetIsValid(longitude, latitude)
? new Position(latitude, longitude) as IPosition
: new NullPostion();
}
}