Skip to content

Commit

Permalink
fix: update take-off point from 200m to 350m (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradip-p authored Nov 22, 2024
1 parent 98e9332 commit 84e7695
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 @@ -66,11 +66,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 200m buffer of the task boundary
if not check_point_within_buffer(take_off_point, task_geojson, 200):
# 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):
raise HTTPException(
status_code=400,
detail="Take off point should be within 200m of the boundary",
detail="Take off point should be within 350m of the boundary",
)

# Update take_off_point in tasks table
Expand Down

0 comments on commit 84e7695

Please sign in to comment.