Files
satellite-provider/SatelliteProvider.Api/SatelliteProvider-geofences.http
T
Anton Martynenko d122497b50 geo fences - wip
2025-11-19 17:26:23 +01:00

103 lines
2.0 KiB
HTTP

### Create Route with Geofences
POST http://localhost:5000/api/satellite/route
Content-Type: application/json
{
"id": "{{$guid}}",
"name": "Route with Geofences",
"description": "Test route with two geofence regions",
"regionSizeMeters": 500,
"zoomLevel": 18,
"requestMaps": true,
"geofences": {
"polygons": [
{
"northWest": {
"lat": 48.28022277841604,
"lon": 37.37548828125001
},
"southEast": {
"lat": 48.2720540660028,
"lon": 37.3901653289795
}
},
{
"northWest": {
"lat": 48.2614270732573,
"lon": 37.35239982604981
},
"southEast": {
"lat": 48.24988342757033,
"lon": 37.37943649291993
}
}
]
},
"points": [
{
"lat": 48.276067180586544,
"lon": 37.38445758819581
},
{
"lat": 48.27074009522731,
"lon": 37.374029159545906
},
{
"lat": 48.263312668696855,
"lon": 37.37707614898682
},
{
"lat": 48.26539817051818,
"lon": 37.36587524414063
},
{
"lat": 48.25851283439989,
"lon": 37.35952377319337
},
{
"lat": 48.254426906081555,
"lon": 37.374801635742195
},
{
"lat": 48.25914140977405,
"lon": 37.39068031311036
},
{
"lat": 48.25354110233028,
"lon": 37.401752471923835
},
{
"lat": 48.25902712391726,
"lon": 37.416257858276374
},
{
"lat": 48.26828345053738,
"lon": 37.402009963989265
}
]
}
### Create Route without Geofences (backward compatible)
POST http://localhost:5000/api/satellite/route
Content-Type: application/json
{
"id": "{{$guid}}",
"name": "Simple Route",
"description": "Route without geofences",
"regionSizeMeters": 500,
"zoomLevel": 18,
"requestMaps": true,
"points": [
{
"lat": 48.276067180586544,
"lon": 37.38445758819581
},
{
"lat": 48.27074009522731,
"lon": 37.374029159545906
}
]
}