Skip to content

Commit 05081db

Browse files
committed
Add hints on mass-calling contains()
1 parent 60fee18 commit 05081db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class OpenLocationCode implememts Stringable
9494
public function recover(float $referenceLatitude, float $referenceLongitude): self;
9595

9696
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
9798

9899
public static function isValidCode(string $code): bool;
99100
public function isValid(): bool;
@@ -121,6 +122,8 @@ class CodeArea
121122

122123
public function getCenterLatitude(): float;
123124
public function getCenterLongitude(): float;
125+
126+
public function contains(float $latitude, float $longitude): float;
124127
}
125128
```
126129

0 commit comments

Comments
 (0)