Skip to content

Commit

Permalink
Merge pull request #326 from COS301-SE-2024/fix/mobile/location
Browse files Browse the repository at this point in the history
Fic Location-based check-in prompt
  • Loading branch information
KamogeloMoeketse authored Aug 20, 2024
2 parents c4deb55 + 132374c commit 32d18ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/occupi-mobile4/utils/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
const polygon = [
{ latitude: -25.755736, longitude: 28.225309 }, // Point 1
{ latitude: -25.751353, longitude: 28.229415 }, // Point 2
{ latitude: -25.757187, longitude: 28.235076 }, // Point 3
{ latitude: -25.754989, longitude: 28.235915 }, // Point 4
{ latitude: -25.753780, longitude: 28.231629 }, // Point 5
{ latitude: -25.752242, longitude: 28.231828 }, // Point 6
{ latitude: -25.752242, longitude: 28.231828 }, // Point 3
{ latitude: -25.753780, longitude: 28.231629 }, // Point 4
{ latitude: -25.754989, longitude: 28.235915 }, // Point 5
{ latitude: -25.757187, longitude: 28.235076 }, // Point 6
];

export const isPointInPolygon = (point: { latitude: number; longitude: number }) => {
Expand Down

0 comments on commit 32d18ff

Please sign in to comment.