public static function googleMapsLink(string $query): string
    {
        $result = $query;
        if ($query) {
            $result = 'https://www.google.com/maps/search/?api=1&query=' . $query;
        }
        return $result;
    }
public static function googleMapsLink(string $query): string
    {
        $result = $query;
        if ($query) {
            $result = 'https://www.google.com/maps/search/?api=1&query=' . $query;
        }
        return $result;
    }
public static function googleMapsLink ( string $ query ) : string { $ result = $ query ; if ( $ query ) { $ result = 'https://www.google.com/maps/search/?api=1&query=' . $ query ; } return $ result ; }
Google maps link.

@see https://developers.google.com/maps/documentation/urls/guide
@param string $query
@return string
Google maps link .