You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,7 @@ class OpenLocationCode implememts Stringable
94
94
public function recover(float $referenceLatitude, float $referenceLongitude): self;
95
95
96
96
public function contains(float $latitude, float $longitude): bool;
97
+
// note: if you need to call contains() many times on the same $this, consider decoding $this first, and then call contains() on the resulting CodeArea instance
97
98
98
99
public static function isValidCode(string $code): bool;
99
100
public function isValid(): bool;
@@ -121,6 +122,8 @@ class CodeArea
121
122
122
123
public function getCenterLatitude(): float;
123
124
public function getCenterLongitude(): float;
125
+
126
+
public function contains(float $latitude, float $longitude): float;
0 commit comments