Skip to content

Commit

Permalink
change buffer distance for take off point
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry authored Dec 27, 2024
1 parent 9f44c02 commit 8343657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/app/waypoints/waypoint_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ async def get_task_waypoint(
if take_off_point:
take_off_point = [take_off_point.longitude, take_off_point.latitude]

# Validate that the take-off point is within a 350 buffer of the task boundary
if not check_point_within_buffer(take_off_point, task_geojson, 350):
# Validate that the take-off point is within a 1000 buffer of the task boundary
if not check_point_within_buffer(take_off_point, task_geojson, 1000):
raise HTTPException(
status_code=400,
detail="Take off point should be within 350m of the boundary",
detail="Take off point should be within 1km of the boundary",
)

# Update take_off_point in tasks table
Expand Down

0 comments on commit 8343657

Please sign in to comment.