Skip to content

Commit

Permalink
Allow geocoding arbitrary address strings
Browse files Browse the repository at this point in the history
No need to require that the street, city, and ZIP be divided up, since we combine them together again.
  • Loading branch information
waldoj committed Dec 21, 2023
1 parent 646a044 commit a8f46e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/includes/class.Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ public function get_coordinates()
{
$q = $this->street . ', ' . $this->city . ', VA ' . $this->zip;
}
elseif (isset($this->address))
{
$q = $this->address;
}
elseif (isset($this->zip))
{
$q = $this->zip;
Expand Down

0 comments on commit a8f46e0

Please sign in to comment.