geo fences - wip

This commit is contained in:
Anton Martynenko
2025-11-19 17:26:23 +01:00
parent 5974b0c589
commit d122497b50
22 changed files with 766 additions and 114 deletions
+28 -2
View File
@@ -39,8 +39,32 @@ public record RegionStatusResponse
public class RoutePointInput
{
public double Latitude { get; set; }
public double Longitude { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("lat")]
public double Lat { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("lon")]
public double Lon { get; set; }
}
public class GeoPointInput
{
[System.Text.Json.Serialization.JsonPropertyName("lat")]
public double Lat { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("lon")]
public double Lon { get; set; }
}
public class GeofencePolygonInput
{
[System.Text.Json.Serialization.JsonPropertyName("northWest")]
public GeoPointInput? NorthWest { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("southEast")]
public GeoPointInput? SouthEast { get; set; }
}
public class GeofencesInput
{
[System.Text.Json.Serialization.JsonPropertyName("polygons")]
public List<GeofencePolygonInput> Polygons { get; set; } = new();
}
public class CreateRouteRequest
@@ -51,6 +75,8 @@ public class CreateRouteRequest
public double RegionSizeMeters { get; set; }
public int ZoomLevel { get; set; }
public List<RoutePointInput> Points { get; set; } = new();
[System.Text.Json.Serialization.JsonPropertyName("geofences")]
public GeofencesInput? Geofences { get; set; }
public bool RequestMaps { get; set; } = false;
}