mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-04-22 09:06:38 +00:00
geo fences - wip
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user