samgis / tests /events /get_parsed_bbox_points.json
aletrn's picture
[feat] add input parsing and validation with pydantic, refactor code
85dd36a
raw
history blame
3.9 kB
{
"europe": {
"input": {
"event": {
"bbox": {
"ne": {
"lat": 38.03932961278458,
"lng": 15.36808069832851
},
"sw": {
"lat": 37.455509218936974,
"lng": 14.632807441554068
}
},
"prompt": [
{
"type": "point",
"data": {
"lat": 37.0,
"lng": 15.0
},
"label": 0
}
],
"zoom": 10,
"source_type": "Satellite",
"debug": true
}
},
"output": {
"bbox": [
[
38.03932961278458,
15.36808069832851
],
[
37.455509218936974,
14.632807441554068
]
],
"prompt": [
{
"type": "point",
"data": [
267,
954
],
"label": 0
}
],
"zoom": 10
}
},
"north_america": {
"input": {
"event": {
"bbox": {
"ne": {
"lat": 44.918201144476456,
"lng": -111.7859533595829
},
"sw": {
"lat": 39.35135789075441,
"lng": -123.03595335958288
}
},
"prompt": [
{
"type": "point",
"data": {
"lat": 41.142370385846974,
"lng": -112.64967251996322
},
"label": 0
}
],
"zoom": 7,
"source_type": "Satellite"
}
},
"output": {
"bbox": [
[
44.918201144476456,
-111.7859533595829
],
[
39.35135789075441,
-123.03595335958288
]
],
"prompt": [
{
"type": "point",
"data": [
946,
471
],
"label": 0
}
],
"zoom": 7
}
},
"oceania": {
"input": {
"event": {
"bbox": {
"ne": {
"lat": -1.4939713066293112,
"lng": 155.30273437500003
},
"sw": {
"lat": -52.32191088594772,
"lng": 65.30273437500001
}
},
"prompt": [
{
"type": "point",
"data": {
"lat": -42.51390169585491,
"lng": 147.0746141732014
},
"label": 0
}
],
"zoom": 4,
"source_type": "Satellite"
}
},
"output": {
"bbox": [
[
-1.4939713066293112,
155.30273437500003
],
[
-52.32191088594772,
65.30273437500001
]
],
"prompt": [
{
"type": "point",
"data": [
930,
518
],
"label": 0
}
],
"zoom": 4
}
},
"south_america": {
"input": {
"event": {
"bbox": {
"ne": {
"lat": -24.80663308621806,
"lng": -63.98446722241735
},
"sw": {
"lat": -31.42861774444052,
"lng": -75.23446722241735
}
},
"prompt": [
{
"type": "point",
"data": {
"lat": -29.911045956544207,
"lng": -64.78226803685988
},
"label": 0
}
],
"zoom": 7,
"source_type": "Satellite"
}
},
"output": {
"bbox": [
[
-24.80663308621806,
-63.98446722241735
],
[
-31.42861774444052,
-75.23446722241735
]
],
"prompt": [
{
"type": "point",
"data": [
952,
524
],
"label": 0
}
],
"zoom": 7
}
}
}