@@ -107,14 +107,14 @@ |
||
| 107 | 107 | $language = $query->getLocale() ?? ''; |
| 108 | 108 | |
| 109 | 109 | $jsonQuery = [ |
| 110 | - 'language' => $language, |
|
| 111 | - 'point' => [ |
|
| 112 | - // x, y are switched in the API |
|
| 113 | - 'y' => $coordinates->getLongitude(), |
|
| 114 | - 'x' => $coordinates->getLatitude(), |
|
| 115 | - ], |
|
| 116 | - 'SRS_In' => 4326, |
|
| 117 | - ]; |
|
| 110 | + 'language' => $language, |
|
| 111 | + 'point' => [ |
|
| 112 | + // x, y are switched in the API |
|
| 113 | + 'y' => $coordinates->getLongitude(), |
|
| 114 | + 'x' => $coordinates->getLatitude(), |
|
| 115 | + ], |
|
| 116 | + 'SRS_In' => 4326, |
|
| 117 | + ]; |
|
| 118 | 118 | |
| 119 | 119 | $url = sprintf(self::REVERSE_ENDPOINT_URL, urlencode(json_encode($jsonQuery))); |
| 120 | 120 | $json = $this->executeQuery($url); |