Use less amigous function name
This commit is contained in:
parent
75ab34210f
commit
4656be5a32
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ use Location\Coordinate;
|
||||||
|
|
||||||
class PlzToCoordinate
|
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);
|
$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);
|
$result = json_decode($content);
|
||||||
|
|
Reference in a new issue