diff --git a/src/Service/PlzToCoordinate.php b/src/Service/PlzToCoordinate.php index 30601f1..a156fa0 100644 --- a/src/Service/PlzToCoordinate.php +++ b/src/Service/PlzToCoordinate.php @@ -6,7 +6,7 @@ use Location\Coordinate; class PlzToCoordinate { - public function getCoordinates(int $plz) + public function convertPlzToCoordinate(int $plz) { $content = file_get_contents("https://swisspost.opendatasoft.com/api/records/1.0/search/?dataset=plz_verzeichnis_v2&q=postleitzahl%3D" . $plz); $result = json_decode($content);