Use less amigous function name

This commit is contained in:
Jannis Portmann 2021-07-15 16:00:55 +02:00
parent 75ab34210f
commit 4656be5a32

View file

@ -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);