Skip to content

Commit

Permalink
feature: add areas method
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler committed Apr 30, 2024
1 parent 73802ff commit 92ce4c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/MapIt.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public function englishRegions(): ?array
return $this->client()->get('/areas/ER')->json();
}

public function areas(string $type): ?array
{
return $this->client()->get("/areas/{$type}")->json();
}

public function throw(bool $shouldThrow = true): static
{
$this->shouldThrow = $shouldThrow;
Expand Down

0 comments on commit 92ce4c9

Please sign in to comment.