Skip to content

Commit

Permalink
- doc: search for points within polygon boundary code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
falahwho committed Aug 14, 2024
1 parent 0bd0675 commit 6450bb5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ $city->save();

$male_city_boundary_wkt = 'POLYGON ((73.50932514628285 4.175929944808645,73.50954911073559 4.175730219415812,73.50914768804103 4.17570881870468,73.50932514628285 4.175929944808645))';

$cities_within_search_area = City::withinBounds($wkt)->get();
$cities_within_search_area = City::withinBounds($male_city_boundary_wkt)->get();
$cities_within_search_area->first()->name; // "Male City"

$uligan_boundary_wkt = '(72.92683934689452 7.0841231111032235,72.92706331134727 7.083924382773967,72.9266618886527 7.083903088896789,72.92683934689452 7.0841231111032235)';
City::withinBounds($in_uligan)->first(); // null
City::withinBounds($uligan_boundary_wkt)->first(); // null
```

0 comments on commit 6450bb5

Please sign in to comment.