feat: implement spatial boundary checks for Bari municipal area in GeoJSON handling

This commit is contained in:
gabdevele
2026-06-15 14:45:38 +02:00 Unverified
parent 088a2ed866
commit aab7420706
13 changed files with 310 additions and 15 deletions
+4
View File
@@ -73,6 +73,10 @@ void sendAdmin(Json::Value body,
{
status = drogon::k422UnprocessableEntity;
}
else if (error == "area_outside_allowed_boundary")
{
status = drogon::k422UnprocessableEntity;
}
callback(visione::http::json(std::move(body), status));
}
} // namespace
+4
View File
@@ -79,6 +79,10 @@ void sendService(Json::Value body,
{
status = drogon::k422UnprocessableEntity;
}
else if (error == "coordinates_outside_allowed_boundary")
{
status = drogon::k422UnprocessableEntity;
}
callback(visione::http::json(std::move(body), status));
}