Fix typos

This commit is contained in:
Jannis Portmann 2022-01-12 23:28:25 +01:00
parent 72418dd5a4
commit d0feff7d74
2 changed files with 2 additions and 2 deletions

View file

@ -146,7 +146,7 @@ class Offering
public function getCoordinate(): ?Coordinate public function getCoordinate(): ?Coordinate
{ {
$coordinate = new Coordinate($this->long, $this->lat); $coordinate = new Coordinate($this->lat, $this->lng);
return $coordinate; return $coordinate;
} }

View file

@ -15,7 +15,7 @@ class PlzToCoordinate
{ {
try { try {
$lat = $result->records[$i]->fields->geo_point_2d[0]; $lat = $result->records[$i]->fields->geo_point_2d[0];
$long = $result->records[$i]->fields->geo_point_2d[0]; $long = $result->records[$i]->fields->geo_point_2d[1];
} catch (\Throwable $th) { } catch (\Throwable $th) {
// throw $th; // throw $th;
} }